|
@@ 203-210 (lines=8) @@
|
| 200 |
|
} |
| 201 |
|
|
| 202 |
|
|
| 203 |
|
public function testWriteException() |
| 204 |
|
{ |
| 205 |
|
$this->mock->expects( $this->once() )->method( 'put' ) |
| 206 |
|
->will( $this->throwException( new \Exception() ) ); |
| 207 |
|
|
| 208 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 209 |
|
$this->object->write( '', 'test' ); |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
|
| 213 |
|
public function testWritef() |
|
@@ 245-254 (lines=10) @@
|
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
|
| 245 |
|
public function testWritesException() |
| 246 |
|
{ |
| 247 |
|
$this->mock->expects( $this->once() )->method( 'put' ) |
| 248 |
|
->will( $this->throwException( new \Exception() ) ); |
| 249 |
|
|
| 250 |
|
$handle = fopen( __FILE__, 'r' ); |
| 251 |
|
|
| 252 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 253 |
|
$this->object->writes( 'file', $handle ); |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
|
| 257 |
|
public function testWritesException2() |