|
@@ 122-129 (lines=8) @@
|
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
|
| 122 |
|
public function testSizeException2() |
| 123 |
|
{ |
| 124 |
|
$this->mock->expects( $this->once() )->method( 'getSize' ) |
| 125 |
|
->will( $this->throwException( new \Exception() ) ); |
| 126 |
|
|
| 127 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 128 |
|
$this->object->size( 'test' ); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
|
| 132 |
|
public function testTime() |
|
@@ 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 \Exception() ) ); |
| 155 |
|
|
| 156 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 157 |
|
$this->object->time( 'test' ); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
|
| 161 |
|
public function testRm() |
|
@@ 170-177 (lines=8) @@
|
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
|
| 170 |
|
public function testRmException() |
| 171 |
|
{ |
| 172 |
|
$this->mock->expects( $this->once() )->method( 'delete' ) |
| 173 |
|
->will( $this->throwException( new \Exception() ) ); |
| 174 |
|
|
| 175 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 176 |
|
$this->object->rm( 'test' ); |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
|
| 180 |
|
public function testHas() |
|
@@ 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 \Exception() ) ); |
| 225 |
|
|
| 226 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 227 |
|
$this->object->read( 'test' ); |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
|
| 231 |
|
public function testReadf() |
|
@@ 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 \Exception() ) ); |
| 271 |
|
|
| 272 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 273 |
|
$this->object->reads( 'test' ); |
| 274 |
|
} |
| 275 |
|
|
| 276 |
|
|
| 277 |
|
public function testWrite() |
|
@@ 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 \Exception() ) ); |
| 300 |
|
|
| 301 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 302 |
|
$this->object->write( 'test', 'value' ); |
| 303 |
|
} |
| 304 |
|
|
| 305 |
|
|
| 306 |
|
public function testWritef() |
|
@@ 338-345 (lines=8) @@
|
| 335 |
|
} |
| 336 |
|
|
| 337 |
|
|
| 338 |
|
public function testWritesException2() |
| 339 |
|
{ |
| 340 |
|
$this->mock->expects( $this->once() )->method( 'putStream' ) |
| 341 |
|
->will( $this->throwException( new \Exception() ) ); |
| 342 |
|
|
| 343 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 344 |
|
$this->object->writes( 'test', null ); |
| 345 |
|
} |
| 346 |
|
|
| 347 |
|
|
| 348 |
|
public function testMove() |