Lines Matching refs:functions

18     private $functions;  variable in PHP_Token_FunctionTest
26 $this->functions[] = $token;
36 $this->assertEquals([], $this->functions[0]->getArguments());
39 ['$baz' => 'Baz'], $this->functions[1]->getArguments()
43 ['$foobar' => 'Foobar'], $this->functions[2]->getArguments()
47 ['$barfoo' => 'Barfoo'], $this->functions[3]->getArguments()
50 $this->assertEquals([], $this->functions[4]->getArguments());
52 $this->assertEquals(['$x' => null, '$y' => null], $this->functions[5]->getArguments());
60 $this->assertEquals('foo', $this->functions[0]->getName());
61 $this->assertEquals('bar', $this->functions[1]->getName());
62 $this->assertEquals('foobar', $this->functions[2]->getName());
63 $this->assertEquals('barfoo', $this->functions[3]->getName());
64 $this->assertEquals('baz', $this->functions[4]->getName());
72 $this->assertEquals(5, $this->functions[0]->getLine());
73 $this->assertEquals(10, $this->functions[1]->getLine());
74 $this->assertEquals(17, $this->functions[2]->getLine());
75 $this->assertEquals(21, $this->functions[3]->getLine());
76 $this->assertEquals(29, $this->functions[4]->getLine());
84 $this->assertEquals(5, $this->functions[0]->getEndLine());
85 $this->assertEquals(12, $this->functions[1]->getEndLine());
86 $this->assertEquals(19, $this->functions[2]->getEndLine());
87 $this->assertEquals(23, $this->functions[3]->getEndLine());
88 $this->assertEquals(31, $this->functions[4]->getEndLine());
96 $this->assertNull($this->functions[0]->getDocblock());
100 $this->functions[1]->getDocblock()
105 $this->functions[2]->getDocblock()
108 $this->assertNull($this->functions[3]->getDocblock());
109 $this->assertNull($this->functions[4]->getDocblock());