2017 © Pedro Peláez
 

library phpunit-extensions

Extensions for PHPUnit to provide additional functionality.

image

ezzatron/phpunit-extensions

Extensions for PHPUnit to provide additional functionality.

  • Monday, February 17, 2014
  • by ezzatron
  • Repository
  • 1 Watchers
  • 3 Stars
  • 537 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

PHPUnit extensions

Extensions for PHPUnit to provide additional functionality., (*1)

The most recent stable version is 2.0.0 Current build status image Current coverage status image, (*2)

Installation and documentation

Parameterized test cases

Parameterized test cases allow entire PHPUnit test cases to be run in multiple different configurations. They operate similar to PHPUnit's own data providers, but on a test case level rather than a test method level., (*3)

To create a parameterized test case, extend the ParameterizedTestCase class instead of PHPUnit_Framework_TestCase, and implement the required methods:, (*4)

use Eloquent\Phpunit\ParameterizedTestCase;

class ExampleTest extends ParameterizedTestCase
{
    public function getTestCaseParameters()
    {
        return array(
            array('Ocelot', 'Lapis lazuli', 'Dandelion'),
            array('Sloth', 'Carbon', 'Conifer'),
        );
    }

    public function setUpParameterized($animal, $mineral, $vegetable)
    {
        // set up...
    }

    public function tearDownParameterized($animal, $mineral, $vegetable)
    {
        // tear down...
    }

    public function testSomething()
    {
        // test...
    }
}

Every test in the testcase will now be run once for each entry in the getTestCaseParameters() method., (*5)

The Versions

17/02 2014

dev-develop

dev-develop https://github.com/eloquent/phpunit-extensions

Extensions for PHPUnit to provide additional functionality.

  Sources   Download

MIT

The Development Requires

test phpunit testing extension case parameterized

17/02 2014

dev-master

9999999-dev https://github.com/eloquent/phpunit-extensions

Extensions for PHPUnit to provide additional functionality.

  Sources   Download

MIT

The Development Requires

test phpunit testing extension case parameterized

17/02 2014

2.0.0

2.0.0.0 https://github.com/eloquent/phpunit-extensions

Extensions for PHPUnit to provide additional functionality.

  Sources   Download

MIT

The Development Requires

test phpunit testing extension case parameterized

04/03 2013

1.0.2

1.0.2.0 https://github.com/ezzatron/phpunit-extensions

Extensions for PHPUnit to provide additional functionality.

  Sources   Download

MIT

The Development Requires

test phpunit testing extension case parameterized

30/08 2012

1.0.1

1.0.1.0 https://github.com/ezzatron/phpunit-extensions

Extensions for PHPUnit to provide additional functionality.

  Sources   Download

MIT

The Development Requires

test phpunit testing extension case parameterized

29/08 2012

1.0.0

1.0.0.0 https://github.com/ezzatron/phpunit-extensions

Extensions for PHPUnit to provide additional functionality.

  Sources   Download

MIT

The Development Requires

test phpunit testing extension case parameterized