public function testRemovingNonExistingElementWillThrowException() { $this->setExpectedException('\\LogicException', 'Cannot remove blacklist entry identified by key "foo" - entry does not exist.'); $this->subjectUnderTest->removeBlacklistEntry('foo'); }