If you expect an exception you need to use something like: `$this->expectException('/The error message regexp/');`