Changeset 32712 for trunk/tests/phpunit/tests/http/base.php
- Timestamp:
- 06/09/2015 03:54:49 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/base.php
r31290 r32712 189 189 $filesize = filesize( $res['filename'] ); 190 190 unlink( $res['filename'] ); 191 } 191 } 192 192 193 193 $this->assertFalse( is_wp_error( $res ) ); … … 195 195 $this->assertEquals( $size, $res['headers']['content-length'] ); // Check the headers are returned (and the size is the same..) 196 196 $this->assertEquals( $size, $filesize ); // Check that the file is written to disk correctly without any extra characters 197 $this->assertStringStartsWith( get_temp_dir(), $res['filename'] ); // Check it's saving within the temp dir 197 198 } 198 199
Note: See TracChangeset
for help on using the changeset viewer.