Changeset 48937 for trunk/tests/phpunit/tests/filesystem/findFolder.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/filesystem/findFolder.php
r47198 r48937 21 21 22 22 $path = $fs->find_folder( '/var/www/wordpress/' ); 23 $this->assert Equals( '/var/www/wordpress/', $path );23 $this->assertSame( '/var/www/wordpress/', $path ); 24 24 25 25 $path = $fs->find_folder( '/this/directory/doesnt/exist/' ); … … 45 45 46 46 $path = $fs->find_folder( '/var/www/example.com/wordpress/' ); 47 $this->assert Equals( '/www/example.com/wordpress/', $path );47 $this->assertSame( '/www/example.com/wordpress/', $path ); 48 48 49 49 $path = $fs->find_folder( '/var/www/wp.example.com/wordpress/wp-content/' ); 50 $this->assert Equals( '/www/wp.example.com/wordpress/wp-content/', $path );50 $this->assertSame( '/www/wp.example.com/wordpress/wp-content/', $path ); 51 51 52 52 } … … 73 73 74 74 $path = $fs->abspath( '/var/www/example.com/wp.example.com/wordpress/' ); 75 $this->assert Equals( '/wp.example.com/wordpress/', $path );75 $this->assertSame( '/wp.example.com/wordpress/', $path ); 76 76 77 77 $path = $fs->abspath( '/var/www/example.com/' ); 78 $this->assert Equals( '/', $path );78 $this->assertSame( '/', $path ); 79 79 80 80 } … … 104 104 // www.example.com 105 105 $path = $fs->abspath( '/var/www/example.com/www/' ); 106 $this->assert Equals( '/example.com/www/', $path );106 $this->assertSame( '/example.com/www/', $path ); 107 107 108 108 // sub.example.com 109 109 $path = $fs->abspath( '/var/www/example.com/sub/' ); 110 $this->assert Equals( '/example.com/sub/', $path );110 $this->assertSame( '/example.com/sub/', $path ); 111 111 112 112 // sub.example.com - Plugins. 113 113 $path = $fs->find_folder( '/var/www/example.com/sub/wp-content/plugins/' ); 114 $this->assert Equals( '/example.com/sub/wp-content/plugins/', $path );114 $this->assertSame( '/example.com/sub/wp-content/plugins/', $path ); 115 115 } 116 116
Note: See TracChangeset
for help on using the changeset viewer.