|
@@ 319-325 (lines=7) @@
|
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
|
| 319 |
|
public function testWrites() |
| 320 |
|
{ |
| 321 |
|
$this->mock->expects( $this->once() )->method( 'putStream' ) |
| 322 |
|
->will( $this->returnValue( true ) ); |
| 323 |
|
|
| 324 |
|
$this->object->writes( 'test', 1 ); |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
|
| 328 |
|
public function testWritesException() |
|
@@ 328-335 (lines=8) @@
|
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
|
| 328 |
|
public function testWritesException() |
| 329 |
|
{ |
| 330 |
|
$this->mock->expects( $this->once() )->method( 'putStream' ) |
| 331 |
|
->will( $this->returnValue( false ) ); |
| 332 |
|
|
| 333 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 334 |
|
$this->object->writes( 'test', 2 ); |
| 335 |
|
} |
| 336 |
|
|
| 337 |
|
|
| 338 |
|
public function testWritesException2() |