/** * Make sure that an exception is thrown if the subject is not registered. */ public function testGetSubjectNotRegistered() { $this->setExpectedException('Phine\\Observer\\Exception\\CollectionException', 'The "test" subject unique identifier is not in use.'); $this->collection->getSubject('test'); }