PHP code example of danwe / dataproviders-differenttypesvalues

1. Go to this page and download the library: Download danwe/dataproviders-differenttypesvalues library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

danwe / dataproviders-differenttypesvalues example snippets



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

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