|
@@ 51-58 (lines=8) @@
|
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
|
| 51 |
|
public function testAddException() |
| 52 |
|
{ |
| 53 |
|
$this->mock->expects( $this->once() )->method( 'basic_publish' ) |
| 54 |
|
->will( $this->throwException( new \Exception() ) ); |
| 55 |
|
|
| 56 |
|
$this->setExpectedException( '\Aimeos\MW\MQueue\Exception' ); |
| 57 |
|
$this->object->add( 'test' ); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
|
| 61 |
|
public function testDel() |
|
@@ 109-116 (lines=8) @@
|
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
|
| 109 |
|
public function testGetException() |
| 110 |
|
{ |
| 111 |
|
$this->mock->expects( $this->once() )->method( 'basic_get' ) |
| 112 |
|
->will( $this->throwException( new \Exception() ) ); |
| 113 |
|
|
| 114 |
|
$this->setExpectedException( '\Aimeos\MW\MQueue\Exception' ); |
| 115 |
|
$this->object->get(); |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
|