| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class PregTest extends TestCase |
||
| 11 | { |
||
| 12 | public function testMatch() |
||
| 13 | { |
||
| 14 | self::assertSame(1, Preg::match('(^(?!-)[A-Za-z0-9._-]+$)', 'foo')); |
||
| 15 | self::assertSame(0, Preg::match('(^(?!-)[A-Za-z0-9._-]+$)', '-foo')); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function testMatchThrowsOnInvalidPattern() |
||
| 23 | } |
||
| 24 | } |
||
| 25 |