/** * @test * @expectedException InvalidArgumentException * @expectedExceptionMessage Invalid property */ public function tryingToFindAPageByAnInvalidPropertyThrowsAnException() { $this->obj->find('invalid = 1'); }