コード例 #1
0
ファイル: ValidateTest.php プロジェクト: titon/utility-old
 /**
  * Test that custom() validates custom regex patterns.
  */
 public function testCustom()
 {
     $this->assertTrue(Validate::custom('abcdef', '/^abc/'));
     $this->assertFalse(Validate::custom('abcdef', '/abc$/'));
 }