public function PHP_Token_FunctionTest::testGetArguments

@covers PHP_Token_FUNCTION::getArguments

File

drupal/core/vendor/phpunit/php-token-stream/Tests/Token/FunctionTest.php, line 85

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());
}