Beispiel #1
0
 /**
  * @covers Soliant\SimpleFM\Adapter::extractErrorFromPhpMessage
  */
 public function testExtractErrorFromPhpMessage()
 {
     $return = array('error' => '401', 'errortext' => 'Unauthorized', 'errortype' => 'HTTP');
     $string = 'HTTP/1.1 401 Unauthorized';
     $this->assertEquals($this->object->extractErrorFromPhpMessage($string), $return);
 }