|
|
@ -190,4 +190,16 @@ class ParseTest extends PHPUnit_Framework_TestCase { |
|
|
|
$this->assertEquals('Hello World', $data['data']['content']['text']); |
|
|
|
} |
|
|
|
|
|
|
|
public function testHEntryRSVP() { |
|
|
|
$url = 'http://source.example.com/h-entry-rsvp'; |
|
|
|
$response = $this->parse(['url' => $url]); |
|
|
|
|
|
|
|
$body = $response->getContent(); |
|
|
|
$this->assertEquals(200, $response->getStatusCode()); |
|
|
|
$data = json_decode($body, true); |
|
|
|
$this->assertEquals('entry', $data['data']['type']); |
|
|
|
$this->assertEquals('I\'ll be there!', $data['data']['name']); |
|
|
|
$this->assertEquals('yes', $data['data']['rsvp']); |
|
|
|
} |
|
|
|
|
|
|
|
} |