Skip to content

Commit d21eca7

Browse files
authored
Merge pull request #3 from indy2kro/dependabot/composer/rector/rector-2.0.8
Bump rector/rector from 2.0.7 to 2.0.8
2 parents b0053be + 7e8c24e commit d21eca7

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/EpubFileTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
use Iterator;
88
use PhpEpub\EpubFile;
99
use PhpEpub\Exception;
10+
use PhpEpub\Metadata;
11+
use PhpEpub\Spine;
1012
use PhpEpub\Util\FileSystemHelper;
1113
use PHPUnit\Framework\Attributes\DataProvider;
1214
use PHPUnit\Framework\TestCase;
@@ -73,7 +75,7 @@ public function testLoadEpub(string $epubPath, bool $shouldLoad, array $expected
7375
$this->assertNotNull($tempDir);
7476

7577
$metadata = $epubFile->getMetadata();
76-
$this->assertNotNull($metadata);
78+
$this->assertInstanceOf(Metadata::class, $metadata);
7779
$this->assertSame($expectedMetadata['title'], $metadata->getTitle());
7880
$this->assertSame($expectedMetadata['authors'], $metadata->getAuthors());
7981
$this->assertSame($expectedMetadata['description'], $metadata->getDescription());
@@ -84,7 +86,7 @@ public function testLoadEpub(string $epubPath, bool $shouldLoad, array $expected
8486
$this->assertSame($expectedMetadata['identifiers'], $metadata->getIdentifiers());
8587

8688
$spine = $epubFile->getSpine();
87-
$this->assertNotNull($spine);
89+
$this->assertInstanceOf(Spine::class, $spine);
8890
$this->assertSame($expectedMetadata['spine'], $spine->get());
8991
}
9092
}

0 commit comments

Comments
 (0)