2017 © Pedro Peláez
 

library humus-phpunit-module

PHPUnit Module for Zend Framework 2

image

prolic/humus-phpunit-module

PHPUnit Module for Zend Framework 2

  • Saturday, August 30, 2014
  • by prolic
  • Repository
  • 3 Watchers
  • 23 Stars
  • 2,424 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Humus PHPUnit Module

Build Status Coverage Status Total Downloads Latest Stable Version Latest Unstable Version Dependency Status, (*1)

Humus PHPUnit Module is a Module for Zend Framework 2 for unit testing. It is able to test all your zf2 modules and libraries at once., (*2)

If you install this module via composer, you will get phpunit installed via composer in your vendor directory, too. You don't have to have a running PHPUnit installation in your system, it will be installed as dependency., (*3)

You can also download and test the Humus PHPUnit Module Sample Application at https://github.com/prolic/HumusPHPUnitModuleSampleApp, (*4)

UPDATES IN 1.2.0

  • Full ZF2 cli integration: You can start humusphpunit with "php public/index.php humusphpunit" The old way of "vendor/bin/humusphpunit" still works
  • Support for passing parameters to phpunit like: "--strict", "--debug", "--version", and so on.
  • Support for new parameters specific to HumusPHPUnitModule like: "--modules=" and "stop-on-module-failure"
  • Get list of available options with: "php public/index.php" or "php public/index.php humusphpunit --help"
  • Colorized output in console
  • Test coverage

UPDATES IN 1.1.0

  • Remove PHPUnitListener - ATTENTION: THIS IS A BC BREAK !!! You have to configure humus phpunit module with your module config from now on.
  • Remove dependency on EHER/PHPUnit, because PHPUnit now handles composer installation himself.
  • Remove dependency on complete Zend Framework 2, instead the required components are defined as dependency.

Dependencies

Suggestions

Installation

  1. Add "prolic/humus-phpunit-module": "1.*" to your composer.json
  2. Run php composer.phar install
  3. Enable the module in your config/application.config.php by adding HumusPHPUnitModule to modules

Usage

php public/index.php humusphpunit

or, (*5)

./vendor/bin/humusphpunit

get help, (*6)

php public/index.php humusphpunit --help

or, (*7)

php public/index.php

Configuration

Sample configuration:, (*8)

<?php
return array(
    'humus_phpunit_module' => array(
        'phpunit_runner' => array(
            'Doctrine\Common' => array(
                'vendor/doctrine/common/phpunit.xml.dist'
            )
        )
    )
);

The Versions

01/07 2013

1.1.2

1.1.2.0 https://github.com/prolic/HumusPHPUnitModule

PHPUnit Module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

phpunit zf2 humus

19/12 2012

1.1.1

1.1.1.0 https://github.com/prolic/HumusPHPUnitModule

PHPUnit Module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

phpunit zf2 humus

03/12 2012

1.1.0

1.1.0.0 https://github.com/prolic/HumusPHPUnitModule

PHPUnit Module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

phpunit zf2 humus

27/09 2012

1.0.1

1.0.1.0 https://github.com/prolic/HumusPHPUnitModule

PHPUnit Module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

phpunit zf2 humus

09/09 2012

1.0.0

1.0.0.0 https://github.com/prolic/HumusPHPUnitModule

PHPUnit Module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

phpunit zf2 humus