@@ 257-264 (lines=8) @@ | ||
254 | } |
|
255 | ||
256 | ||
257 | public function testReadsException() |
|
258 | { |
|
259 | $this->mock->expects( $this->once() )->method( 'readStream' ) |
|
260 | ->will( $this->returnValue( false ) ); |
|
261 | ||
262 | $this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
|
263 | $this->object->reads( 'test' ); |
|
264 | } |
|
265 | ||
266 | ||
267 | public function testReadsException2() |
|
@@ 267-274 (lines=8) @@ | ||
264 | } |
|
265 | ||
266 | ||
267 | public function testReadsException2() |
|
268 | { |
|
269 | $this->mock->expects( $this->once() )->method( 'readStream' ) |
|
270 | ->will( $this->throwException( new \RuntimeException() ) ); |
|
271 | ||
272 | $this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
|
273 | $this->object->reads( 'test' ); |
|
274 | } |
|
275 | ||
276 | ||
277 | public function testWrite() |