Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function testGetFunctions() |
||
37 | { |
||
38 | $functions = $this->extension->getFunctions(); |
||
39 | $this->assertCount(1, $functions); |
||
40 | $function = reset($functions); |
||
41 | $this->assertInstanceOf('Twig_SimpleFunction', $function); |
||
42 | $callable = $function->getCallable(); |
||
43 | $this->assertTrue(is_array($callable)); |
||
44 | $this->assertCount(2, $callable); |
||
45 | $this->assertSame($this->extension, $callable[0]); |
||
46 | $this->assertSame('setBreakpoint', $callable[1]); |
||
47 | } |
||
48 | } |
||
49 |