/** * @expectedException NoDocumentException */ public function testSearchOneException() { $instance = TestModel::searchOne(array('name' => 'B')); }