public function testExceptionWhenRemovingNonexistentAttr() { $this->setExpectedException(AttributeNotFound::class); $this->attrContainer->remObjAttr($this->testObj, "nonexistent-attr-key"); }