Changeset 42343 for trunk/tests/phpunit/tests/formatting/LikeEscape.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/LikeEscape.php
r28714 r42343 11 11 function test_like_escape() { 12 12 13 $inputs = array(13 $inputs = array( 14 14 'howdy%', //Single Percent 15 15 'howdy_', //Single Underscore … … 18 18 ); 19 19 $expected = array( 20 "howdy\\%",20 'howdy\\%', 21 21 'howdy\\_', 22 22 'howdy\\', 23 'howdy\\howdy\\%howdy\\_' 23 'howdy\\howdy\\%howdy\\_', 24 24 ); 25 25 26 foreach ( $inputs as $key => $input) {27 $this->assertEquals( $expected[$key], like_escape($input));26 foreach ( $inputs as $key => $input ) { 27 $this->assertEquals( $expected[ $key ], like_escape( $input ) ); 28 28 } 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.