Skip to content

Commit

Permalink
Update Test.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ozon1234 authored Aug 29, 2022
1 parent 1560104 commit 0b6df84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/MicrodataPhpGetAllObjectsTest/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace Zoon\ZMicrodataPHP\Test\MicrodataPhpGetAllObjectsTest;
namespace Zoon\MicrodataPHP\Test\MicrodataPhpGetAllObjectsTest;

use PHPUnit\Framework\TestCase;
use Zoon\ZMicrodataPHP\MicrodataPhp;
use Zoon\MicrodataPHP\MicrodataPhp;

final class Test extends TestCase {

Expand All @@ -18,4 +18,4 @@ public function testWithoutRoot(): void {
$microdataPhp = new MicrodataPhp(['html' => file_get_contents(__DIR__ . '/example/WithoutRoot.html')]);
self::assertSame('{"items":[{"properties":{"author":[{"properties":{"name":["Name"]},"type":["https:\/\/schema.org\/Person"],"id":null}],"datePublished":["2022-01-01"],"reviewRating":[{"properties":{"ratingValue":["5"]},"type":["http:\/\/schema.org\/Rating"],"id":null}],"reviewBody":["Good site"]},"type":["https:\/\/schema.org\/Review"],"id":null},{"properties":{"name":["Name"]},"type":["https:\/\/schema.org\/Person"],"id":null},{"properties":{"ratingValue":["5"]},"type":["http:\/\/schema.org\/Rating"],"id":null},{"properties":{"author":[{"properties":{"name":["Name 2"]},"type":["https:\/\/schema.org\/Person"],"id":null}],"datePublished":["2022-01-01"],"reviewRating":[{"properties":{"ratingValue":["5"]},"type":["http:\/\/schema.org\/Rating"],"id":null}],"reviewBody":["Good site 2"]},"type":["https:\/\/schema.org\/Review"],"id":null},{"properties":{"name":["Name 2"]},"type":["https:\/\/schema.org\/Person"],"id":null},{"properties":{"ratingValue":["5"]},"type":["http:\/\/schema.org\/Rating"],"id":null}]}', json_encode($microdataPhp->getAllObjects()));
}
}
}

0 comments on commit 0b6df84

Please sign in to comment.