/** * @expectedException NotFoundException */ public function testFindByTagNotFound() { PostRepository::findByTag('not-exist-tag'); }