for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ParamProcessor\Tests\Integration\Definitions;
/**
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/
class StringParamTest extends ParamDefinitionTest {
* @see ParamDefinitionTest::valueProvider
*
* @param boolean $stringlyTyped
* @return array
public function valueProvider( $stringlyTyped = true ) {
return [
'empty' => [
[ 'ohi there', true, 'ohi there' ],
[ 4.2, false ],
[ [ 42 ], false ],
],
'values' => [
[ 'foo', true, 'foo' ],
[ '1', true, '1' ],
[ 'yes', true, 'yes' ],
[ 'bar', false ],
[ true, false ],
[ 0.1, false ],
[ [], false ],
];
}
* @see ParamDefinitionTest::getType
* @return string
public function getType() {
return 'string';