Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function testNewSignupFieldsParserFunction() { |
||
32 | |||
33 | $parser = $this->getMockBuilder( '\Parser' ) |
||
34 | ->disableOriginalConstructor() |
||
35 | ->getMock(); |
||
36 | |||
37 | $instance = new ParserFunctionFactory(); |
||
38 | |||
39 | list( $name, $definition, $flag ) = $instance->newSignupFieldsParserFunctionDefinition(); |
||
40 | |||
41 | $this->assertEquals( |
||
42 | 'signupfields', |
||
43 | $name |
||
44 | ); |
||
45 | |||
46 | $this->assertInstanceOf( |
||
47 | '\Closure', |
||
48 | $definition |
||
49 | ); |
||
50 | |||
51 | $this->assertEquals( |
||
52 | 0, |
||
53 | $flag |
||
54 | ); |
||
55 | |||
56 | $this->assertNotEmpty( |
||
57 | call_user_func_array( $definition, array( $parser ) ) |
||
58 | ); |
||
59 | } |
||
60 | |||
62 |