Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | public function testStaticCall() |
||
12 | { |
||
13 | $this->assertEquals( |
||
14 | NamedArgs::preg_match_all( |
||
|
|||
15 | args( |
||
16 | [ |
||
17 | 'subpatterns'=>&$matches0, |
||
18 | 'pattern'=>'#a|o|i|u|e#', |
||
19 | 'subject'=>'gris|gros|gras|grue' |
||
20 | ] |
||
21 | ) |
||
22 | ), |
||
23 | preg_match_all('#a|o|i|u|e#', 'gris|gros|gras|grue', $matches1) |
||
24 | ); |
||
25 | |||
26 | $this->assertEquals($matches0, $matches1); |
||
27 | |||
28 | $this->assertTrue( |
||
29 | (bool) NamedArgs::preg_match( |
||
30 | [ |
||
31 | 'subpatterns'=>&$match, |
||
32 | 'pattern'=>'#a|o|i|u|e#', |
||
33 | 'subject'=>'gris|gros|gras|grue' |
||
34 | ] |
||
38 | } |