Skip to content

Commit dcf5d67

Browse files
committed
Move test resources to the tests directory
1 parent ae0503d commit dcf5d67

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Diff for: tests/JsonGFromImageTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class JsonGFromImageTest extends TestCase
1818
*/
1919
public function testCanConvertImageBlobToJsonGString(): void
2020
{
21-
$testData = fopen(__DIR__.'/../resources/demo.png', 'rb');
21+
$testData = fopen(__DIR__.'/resources/demo.png', 'rb');
2222

2323
$image = new Imagick();
2424
$image->readImageFile($testData);
2525

2626
$json = JsonG::toJson($image);
2727

2828
$this->assertJson($json);
29-
$this->assertJsonStringEqualsJsonFile(__DIR__.'/../resources/demo.jsng', $json);
29+
$this->assertJsonStringEqualsJsonFile(__DIR__.'/resources/demo.jsng', $json);
3030
}
3131
}

Diff for: tests/JsonGToImageTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class JsonGToImageTest extends TestCase
1111
/* Test whether a JSON-G string can be converted to an image blob string. */
1212
public function testCanConvertJsonGStringToImageBlob(): void
1313
{
14-
$testData = file_get_contents(__DIR__.'/../resources/demo.jsng');
14+
$testData = file_get_contents(__DIR__.'/resources/demo.jsng');
1515

1616
$jsonArray = json_decode($testData, true);
1717

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)