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