예제 #1
0
파일: TextTest.php 프로젝트: puwenhan/Text
 public function testMatch()
 {
     $text = new Text("1st2nd3rd");
     $this->assertTrue($text->match('/(\\d)rd+/', $matches));
     $this->assertEquals(array("3rd", "3"), $matches);
 }