|
@ -48,6 +48,8 @@ class ParseTest extends PHPUnit_Framework_TestCase { |
|
|
$data = json_decode($body); |
|
|
$data = json_decode($body); |
|
|
$this->assertObjectHasAttribute('error', $data); |
|
|
$this->assertObjectHasAttribute('error', $data); |
|
|
$this->assertEquals('no_link_found', $data->error); |
|
|
$this->assertEquals('no_link_found', $data->error); |
|
|
|
|
|
$this->assertEquals('200', $data->code); |
|
|
|
|
|
$this->assertEquals($url, $data->url); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function testTargetFound() { |
|
|
public function testTargetFound() { |
|
@ -58,7 +60,6 @@ class ParseTest extends PHPUnit_Framework_TestCase { |
|
|
$this->assertEquals(200, $response->getStatusCode()); |
|
|
$this->assertEquals(200, $response->getStatusCode()); |
|
|
$data = json_decode($body); |
|
|
$data = json_decode($body); |
|
|
$this->assertObjectNotHasAttribute('error', $data); |
|
|
$this->assertObjectNotHasAttribute('error', $data); |
|
|
$this->assertObjectNotHasAttribute('error', $data); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function testHTMLContent() { |
|
|
public function testHTMLContent() { |
|
|