/** * @test * @expectedException \TYPO3\CMS\Fluid\Core\ViewHelper\Exception\InvalidVariableException */ public function removingNonExistentKeyThrowsException() { $this->viewHelperVariableContainer->remove('TYPO3\\CMS\\Fluid\\ViewHelper\\NonExistent', 'nonExistentKey'); }