/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage Unable to get unknown parameter "nonExisting" */ public function testGetParameterIncorrect() { $this->browser->getNonExisting(); }