@@ 151-158 (lines=8) @@ | ||
148 | } |
|
149 | ||
150 | ||
151 | public function testTimeException2() |
|
152 | { |
|
153 | $this->mock->expects( $this->once() )->method( 'getTimestamp' ) |
|
154 | ->will( $this->throwException( new \RuntimeException() ) ); |
|
155 | ||
156 | $this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
|
157 | $this->object->time( 'test' ); |
|
158 | } |
|
159 | ||
160 | ||
161 | public function testRm() |
|
@@ 221-228 (lines=8) @@ | ||
218 | } |
|
219 | ||
220 | ||
221 | public function testReadException2() |
|
222 | { |
|
223 | $this->mock->expects( $this->once() )->method( 'read' ) |
|
224 | ->will( $this->throwException( new \RuntimeException() ) ); |
|
225 | ||
226 | $this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
|
227 | $this->object->read( 'test' ); |
|
228 | } |
|
229 | ||
230 | ||
231 | public function testReadf() |
|
@@ 296-303 (lines=8) @@ | ||
293 | } |
|
294 | ||
295 | ||
296 | public function testWriteException2() |
|
297 | { |
|
298 | $this->mock->expects( $this->once() )->method( 'put' ) |
|
299 | ->will( $this->throwException( new \RuntimeException() ) ); |
|
300 | ||
301 | $this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
|
302 | $this->object->write( 'test', 'value' ); |
|
303 | } |
|
304 | ||
305 | ||
306 | public function testWritef() |