Changeset 41635
- Timestamp:
- 09/28/2017 10:55:54 PM (7 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable.php
r36311 r41635 103 103 104 104 foreach ( $test_files as $file ) { 105 preg_match_all( '#^ function (\w+)#m', file_get_contents( ABSPATH . '/' . $file ), $functions );105 preg_match_all( '#^\t?function (\w+)#m', file_get_contents( ABSPATH . '/' . $file ), $functions ); 106 106 107 107 foreach ( $functions[1] as $function ) { -
trunk/tests/phpunit/tests/user/capabilities.php
r41625 r41635 402 402 $this->assertNotEmpty( $function ); 403 403 404 $matched = preg_match_all( '/^[\t] case \'([^\']+)/m', $function[0], $cases );404 $matched = preg_match_all( '/^[\t]{1,2}case \'([^\']+)/m', $function[0], $cases ); 405 405 $this->assertNotEmpty( $matched ); 406 406 $this->assertNotEmpty( $cases );
Note: See TracChangeset
for help on using the changeset viewer.