diff options
Diffstat (limited to 'www/wiki/vendor/param-processor/param-processor/tests/Unit/ParamAliasTest.php')
-rw-r--r-- | www/wiki/vendor/param-processor/param-processor/tests/Unit/ParamAliasTest.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/wiki/vendor/param-processor/param-processor/tests/Unit/ParamAliasTest.php b/www/wiki/vendor/param-processor/param-processor/tests/Unit/ParamAliasTest.php new file mode 100644 index 00000000..bd57dbd3 --- /dev/null +++ b/www/wiki/vendor/param-processor/param-processor/tests/Unit/ParamAliasTest.php @@ -0,0 +1,21 @@ +<?php + +namespace ParamProcessor\Tests\Unit; + +use ParamProcessor\Param; +use ParamProcessor\ParamDefinition; +use PHPUnit\Framework\TestCase; + +/** + * @licence GNU GPL v2+ + * @author Jeroen De Dauw < jeroendedauw@gmail.com > + */ +class ParamAliasTest extends TestCase { + + public function testListParamProcessingWithEmptyListAsDefault() { + $definition = new ParamDefinition( 'string', 'something' ); + $param = new Param( $definition ); + $this->assertTrue( $param->isRequired() ); + } + +} |