2008-12-04から1日間の記事一覧

AssertTags()で正規表現

unit testing - How to write an AssertTags test in SimpleTest with regex? - Stack Overflow Some text</p>"; $expected = array( '<p', 'preg:/[A-Za-z\.\s\,]+/', '/p' ); $this->assertTags( $result, $expected )</p',>