public function PHP_Token_ClosureTest::testGetArguments in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-token-stream/tests/Token/ClosureTest.php \PHP_Token_ClosureTest::testGetArguments()
@covers PHP_Token_FUNCTION::getArguments
File
- vendor/
phpunit/ php-token-stream/ tests/ Token/ ClosureTest.php, line 41
Class
- PHP_Token_ClosureTest
- Tests for the PHP_Token_FUNCTION class.
Code
public function testGetArguments() {
$this
->assertEquals(array(
'$foo' => null,
'$bar' => null,
), $this->functions[0]
->getArguments());
$this
->assertEquals(array(
'$foo' => 'Foo',
'$bar' => null,
), $this->functions[1]
->getArguments());
$this
->assertEquals(array(
'$foo' => null,
'$bar' => null,
'$baz' => null,
), $this->functions[2]
->getArguments());
$this
->assertEquals(array(
'$foo' => 'Foo',
'$bar' => null,
'$baz' => null,
), $this->functions[3]
->getArguments());
$this
->assertEquals(array(), $this->functions[4]
->getArguments());
$this
->assertEquals(array(), $this->functions[5]
->getArguments());
}