2017 © Pedro Peláez
 

library dataproviders-differenttypesvalues

PhpUnit compatible data provider providing one value of each of PHP's built-in types per test case. Allows to exclude types based on the name of the test using the data provider.

image

danwe/dataproviders-differenttypesvalues

PhpUnit compatible data provider providing one value of each of PHP's built-in types per test case. Allows to exclude types based on the name of the test using the data provider.

  • Friday, June 19, 2015
  • by Danwe
  • Repository
  • 1 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

php-DataProviders-DifferentTypesValues

PhpUnit compatible data provider providing one value of each of PHP's built-in types per test case. Allows to exclude types based on the name of the test using the data provider., (*1)

Latest Stable Version Build Status Coverage Status Dependency Status Download count, (*2)

Usage

Consider the following example:, (*3)

<?php
class PersonTest extends \PHPUnit_Framework_TestCase {
    /**
     * @expectedException InvalidArgumentException
     *
     * @dataProvider Danwe\DataProviders\DifferentTypesValues::oneOfEachTypeProvider
     */
    public function testConstructionWithNonStringValues( $personName ) {
        new Person( $personName );
    }

    // ...
    // further "Person" tests
    // ...
}

Due to the test's WithNonStringValues suffix, DifferentTypesValues::oneOfEachTypeProvider will only provide non-string values., (*4)

TODOs

  • Excluding more than one type with a WithNon<TYPE1>And<TYPE2>Values test name suffix.
  • With<TYPE1>And<TYPE2>Values test name suffix to only provide values of the mentioned types.
  • DifferentTypesValues::valuesProvider to provide multiple different values for each type.

The Versions

19/06 2015

dev-master

9999999-dev https://github.com/DanweDE/php-DataProviders-DifferentTypesValues

PhpUnit compatible data provider providing one value of each of PHP's built-in types per test case. Allows to exclude types based on the name of the test using the data provider.

  Sources   Download

MIT License

The Requires

  • php >=5.3.0

 

The Development Requires

test phpunit helper values data provider

19/06 2015

v1.0.0

1.0.0.0 https://github.com/DanweDE/php-DataProviders-DifferentTypesValues

PhpUnit compatible data provider providing one value of each of PHP's built-in types per test case. Allows to exclude types based on the name of the test using the data provider.

  Sources   Download

MIT License

The Requires

  • php >=5.3.0

 

The Development Requires

test phpunit helper values data provider

19/06 2015

1.0.0

1.0.0.0 https://github.com/DanweDE/php-DataProviders-DifferentTypesValues

PhpUnit compatible data provider providing one value of each of PHP's built-in types per test case. Allows to exclude types based on the name of the test using the data provider.

  Sources   Download

MIT License

The Requires

  • php >=5.3.0

 

The Development Requires

test phpunit helper values data provider