aboutsummaryrefslogtreecommitdiff
path: root/tests/Formats/JsonFormatTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Formats/JsonFormatTest.php')
-rw-r--r--tests/Formats/JsonFormatTest.php27
1 files changed, 15 insertions, 12 deletions
diff --git a/tests/Formats/JsonFormatTest.php b/tests/Formats/JsonFormatTest.php
index 3b9f8d47..c21d3f34 100644
--- a/tests/Formats/JsonFormatTest.php
+++ b/tests/Formats/JsonFormatTest.php
@@ -1,4 +1,5 @@
<?php
+
/**
* JsonFormat - JSON Feed Version 1
* https://jsonfeed.org/version/1
@@ -10,18 +11,20 @@ require_once __DIR__ . '/BaseFormatTest.php';
use PHPUnit\Framework\TestCase;
-class JsonFormatTest extends BaseFormatTest {
- private const PATH_EXPECTED = self::PATH_SAMPLES . 'expectedJsonFormat/';
+class JsonFormatTest extends BaseFormatTest
+{
+ private const PATH_EXPECTED = self::PATH_SAMPLES . 'expectedJsonFormat/';
- /**
- * @dataProvider sampleProvider
- * @runInSeparateProcess
- */
- public function testOutput(string $name, string $path) {
- $data = $this->formatData('Json', $this->loadSample($path));
- $this->assertNotNull(json_decode($data), 'invalid JSON output: ' . json_last_error_msg());
+ /**
+ * @dataProvider sampleProvider
+ * @runInSeparateProcess
+ */
+ public function testOutput(string $name, string $path)
+ {
+ $data = $this->formatData('Json', $this->loadSample($path));
+ $this->assertNotNull(json_decode($data), 'invalid JSON output: ' . json_last_error_msg());
- $expected = self::PATH_EXPECTED . $name . '.json';
- $this->assertJsonStringEqualsJsonFile($expected, $data);
- }
+ $expected = self::PATH_EXPECTED . $name . '.json';
+ $this->assertJsonStringEqualsJsonFile($expected, $data);
+ }
}