Current File : /home/jvzmxxx/wiki1/vendor/param-processor/param-processor/tests/phpunit/ParamTest.php
<?php

namespace ParamProcessor\Tests;

use ParamProcessor\Options;
use ParamProcessor\Param;
use ParamProcessor\ParamDefinition;

/**
 * @covers ParamProcessor\Param
 *
 * @licence GNU GPL v2+
 * @author Jeroen De Dauw < jeroendedauw@gmail.com >
 */
class ParamTest extends \PHPUnit_Framework_TestCase {

	public function testListParamProcessingWithEmptyListAsDefault() {
		$definition = new ParamDefinition( 'string', 'something', [] );
		$definitions = [ $definition ];

		$param = new Param( $definition );
		$param->process( $definitions, [], new Options() );

		$this->assertSame( [], $param->getValue() );
	}

}