From 5f6119c86ba0a8f3bb022a08e89a6cdfb8dbc3dd Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Fri, 18 Sep 2015 13:06:22 -0400 Subject: [PATCH] Fix failing tests for PHP < 5.6 --- .../Transformer/MangaListsZipperTest.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/AnimeClient/Transformer/MangaListsZipperTest.php b/tests/AnimeClient/Transformer/MangaListsZipperTest.php index 1fe4e429..ff0b5961 100644 --- a/tests/AnimeClient/Transformer/MangaListsZipperTest.php +++ b/tests/AnimeClient/Transformer/MangaListsZipperTest.php @@ -3,22 +3,25 @@ use Aviat\AnimeClient\Transformer\Hummingbird\MangaListsZipper; class MangaListsZipperTest extends AnimeClient_TestCase { - - protected $start_file = __DIR__ . '/../../test_data/manga_list/manga.json'; - protected $res_file = __DIR__ . '/../../test_data/manga_list/manga-zippered.json'; + + protected $start_file = ''; + protected $res_file = ''; public function setUp() { + $this->start_file = __DIR__ . '/../../test_data/manga_list/manga.json'; + $this->res_file = __DIR__ . '/../../test_data/manga_list/manga-zippered.json'; + $json = json_decode(file_get_contents($this->start_file), TRUE); $this->mangaListsZipper = new MangaListsZipper($json); } - + public function testTransform() { $zippered_json = json_decode(file_get_contents($this->res_file), TRUE); $transformed = $this->mangaListsZipper->transform(); - + $this->assertEquals($zippered_json, $transformed); } - + } \ No newline at end of file