/** * @covers MicrosoftAzure\Storage\Common\ServiceException::getErrorText */ public function testGetErrorText() { // Setup $code = '210'; $error = 'Invalid value provided'; $reason = 'Value can\'t be null'; $e = new ServiceException($code, $error, $reason); // Test $actualError = $e->getErrorText(); // Assert $this->assertEquals($error, $actualError); }