Changeset 48937 for trunk/tests/phpunit/tests/file.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/file.php
r48464 r48937 40 40 41 41 foreach ( $actual as $header => $value ) { 42 $this->assert Equals( $expected[ $header ], $value, $header );42 $this->assertSame( $expected[ $header ], $value, $header ); 43 43 } 44 44 } … … 62 62 63 63 foreach ( $actual as $header => $value ) { 64 $this->assert Equals( $expected[ $header ], $value, $header );64 $this->assertSame( $expected[ $header ], $value, $header ); 65 65 } 66 66 } … … 119 119 120 120 // Make sure the bad characters were all stripped out. 121 $this->assert Equals( $name . '.txt', $filename );121 $this->assertSame( $name . '.txt', $filename ); 122 122 123 123 $this->assertTrue( $this->is_unique_writable_file( $this->dir, $filename ) ); … … 132 132 133 133 // The slash should be removed, i.e. "foofoo.txt". 134 $this->assert Equals( $name . $name . '.txt', $filename );134 $this->assertSame( $name . $name . '.txt', $filename ); 135 135 136 136 $this->assertTrue( $this->is_unique_writable_file( $this->dir, $filename ) ); … … 144 144 145 145 // "foo.php.txt" becomes "foo.php_.txt". 146 $this->assert Equals( $name . '.php_.txt', $filename );146 $this->assertSame( $name . '.php_.txt', $filename ); 147 147 148 148 $this->assertTrue( $this->is_unique_writable_file( $this->dir, $filename ) ); … … 155 155 $filename = wp_unique_filename( $this->dir, $name ); 156 156 157 $this->assert Equals( $name, $filename );157 $this->assertSame( $name, $filename ); 158 158 159 159 $this->assertTrue( $this->is_unique_writable_file( $this->dir, $filename ) ); … … 232 232 233 233 $this->assertWPError( $verify ); 234 $this->assert Equals( 'signature_verification_failed', $verify->get_error_code() );234 $this->assertSame( 'signature_verification_failed', $verify->get_error_code() ); 235 235 } 236 236
Note: See TracChangeset
for help on using the changeset viewer.