public function hasCode($code) { $this->_validateExceptionThrown(); AssertAdapter::assertEquals($code, $this->exception->getCode()); return $this; }