Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function testSaveFile() |
||
37 | { |
||
38 | $ds = DIRECTORY_SEPARATOR; |
||
39 | $content = file_get_contents( dirname( __DIR__ ) . $ds . '_testfiles' . $ds . 'application.txt' ); |
||
40 | $dest = dirname( dirname( dirname( __DIR__ ) ) ) . $ds . 'tmp' . $ds . 'application.txt'; |
||
41 | |||
42 | $media = new \Aimeos\MW\Media\Application\Standard( $content, 'application/octet-stream', array() ); |
||
43 | $media->save( $dest ); |
||
44 | |||
45 | $this->assertEquals( true, file_exists( $dest ) ); |
||
46 | unlink( $dest ); |
||
47 | } |
||
48 | } |
||
49 |