Пример #1
0
 /**
  * Test that custom() validates custom regex patterns.
  */
 public function testCustom()
 {
     $this->assertTrue(Validate::custom('abcdef', '/^abc/'));
     $this->assertFalse(Validate::custom('abcdef', '/abc$/'));
 }