|
@@ 367-374 (lines=8) @@
|
| 364 |
|
} |
| 365 |
|
|
| 366 |
|
|
| 367 |
|
public function testMoveException2() |
| 368 |
|
{ |
| 369 |
|
$this->mock->expects( $this->once() )->method( 'rename' ) |
| 370 |
|
->will( $this->throwException( new \Exception() ) ); |
| 371 |
|
|
| 372 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 373 |
|
$this->object->move( 'file1', 'file2' ); |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
|
| 377 |
|
public function testCopy() |
|
@@ 396-403 (lines=8) @@
|
| 393 |
|
} |
| 394 |
|
|
| 395 |
|
|
| 396 |
|
public function testCopyException2() |
| 397 |
|
{ |
| 398 |
|
$this->mock->expects( $this->once() )->method( 'copy' ) |
| 399 |
|
->will( $this->throwException( new \Exception() ) ); |
| 400 |
|
|
| 401 |
|
$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' ); |
| 402 |
|
$this->object->copy( 'file1', 'file2' ); |
| 403 |
|
} |
| 404 |
|
} |
| 405 |
|
|