コード例 #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);
 }