Changeset 22 in tests
- Timestamp:
- 09/22/2007 02:50:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_meta.php
r1 r22 18 18 } 19 19 20 // test helper utility functions 21 class WPTestUtils extends WPTestCase { 22 23 function test_strip_ws() { 24 $this->assertEquals('', strip_ws('')); 25 $this->assertEquals('foo', strip_ws('foo')); 26 $this->assertEquals('', strip_ws("\r\n\t \n\r\t")); 27 28 $in = <<<EOF 29 asdf 30 asdf asdf 31 asdf asdf 32 \tasdf 33 \tasdf\t 34 \t\tasdf 35 foo bar\n\r\n 36 foo 37 38 EOF; 39 40 $expected = <<<EOF 41 asdf 42 asdf asdf 43 asdf asdf 44 asdf 45 asdf 46 asdf 47 foo bar 48 foo 49 EOF; 50 $this->assertEquals($expected, strip_ws($in)); 51 52 } 53 } 54 20 55 ?>
Note: See TracChangeset
for help on using the changeset viewer.