/** * Make sure an exception is thrown if we unregister an unregistered subject. */ public function testUnregisterSubjectNotRegistered() { $this->setExpectedException('Phine\\Observer\\Exception\\CollectionException', 'The "test" subject unique identifier is not in use.'); $this->collection->unregisterSubject('test'); }