Browse Source

add test from ascraeus.org which was causing an INTL error

pull/60/head v1.4.13
Aaron Parecki 6 years ago
parent
commit
584f34e1ed
No known key found for this signature in database GPG Key ID: 276C2817346D6056
2 changed files with 1231 additions and 1 deletions
  1. +13
    -1
      tests/FeedTest.php
  2. +1218
    -0
      tests/data/source.example.com/ascraeus

+ 13
- 1
tests/FeedTest.php View File

@ -314,4 +314,16 @@ class FeedTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('Sometimes my job requires me to listen to 55 minutes of an hour long phone call while I go for a long walk on a sunny morning and wait for my turn to give an update. Pretty nice!', $data->items[11]->content->text);
}
}
public function testAscraeus() {
$url = 'http://source.example.com/ascraeus';
$response = $this->parse(['url' => $url, 'expect' => 'feed']);
$body = $response->getContent();
$this->assertEquals(200, $response->getStatusCode());
$data = json_decode($body)->data;
$this->assertEquals('feed', $data->type);
$this->assertEquals(20, count($data->items));
}
}

+ 1218
- 0
tests/data/source.example.com/ascraeus
File diff suppressed because it is too large
View File


Loading…
Cancel
Save