Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * with annotation
- *
- * @expectedException MyException
- */
- public function testTextException()
- {
- $this->model->operation();
- }
- /**
- * without annotation
- */
- public function testTextException()
- {
- try {
- $this->model->operation();
- } catch (MyException $e) {
- return;
- }
- $this->fail('Excepected exception MyException.');
- }
Advertisement
Add Comment
Please, Sign In to add comment