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