You are here

public function PHP_Token_FunctionTest::testGetArguments in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php \PHP_Token_FunctionTest::testGetArguments()

@covers PHP_Token_FUNCTION::getArguments

File

vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php, line 41

Class

PHP_Token_FunctionTest
Tests for the PHP_Token_FUNCTION class.

Code

public function testGetArguments() {
  $this
    ->assertEquals(array(), $this->functions[0]
    ->getArguments());
  $this
    ->assertEquals(array(
    '$baz' => 'Baz',
  ), $this->functions[1]
    ->getArguments());
  $this
    ->assertEquals(array(
    '$foobar' => 'Foobar',
  ), $this->functions[2]
    ->getArguments());
  $this
    ->assertEquals(array(
    '$barfoo' => 'Barfoo',
  ), $this->functions[3]
    ->getArguments());
  $this
    ->assertEquals(array(), $this->functions[4]
    ->getArguments());
  $this
    ->assertEquals(array(
    '$x' => null,
    '$y' => null,
  ), $this->functions[5]
    ->getArguments());
}