/** * Tests getting manager before it is set. */ public function testException2() { $instance = new SeoFinder(); $this->setExpectedException('LogicException', 'setEntityManager must be called before getEntityManager'); $instance->getEntityManager(); }