Skip to content

Commit b63bf35

Browse files
committed
Added more tests
1 parent 2be66f2 commit b63bf35

File tree

5 files changed

+4
-1
lines changed

5 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A PHP library for processing EPUB files, including parsing, metadata manipulatio
1616
To install the library, use Composer:
1717

1818
```bash
19-
composer require your-vendor-name/epub-processor
19+
composer require indy2kro/php-epub
2020
```
2121

2222
Ensure that you have the necessary PHP extensions and optional libraries installed for full functionality:

tests/EpubFileTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ public function testSaveEpub(string $epubPath, bool $shouldLoad, bool $isValid):
112112
public static function epubFileProvider(): Iterator
113113
{
114114
yield [__DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'valid.epub', true, true];
115+
yield [__DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'valid_1.epub', true, true];
116+
yield [__DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'valid_2.epub', true, true];
117+
yield [__DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'valid_3.epub', true, true];
115118
yield [__DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'invalid.epub', true, false];
116119
yield [__DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'nonexistent.epub', false, false];
117120
}

tests/fixtures/valid_1.epub

3.13 KB
Binary file not shown.

tests/fixtures/valid_2.epub

270 KB
Binary file not shown.

tests/fixtures/valid_3.epub

458 KB
Binary file not shown.

0 commit comments

Comments
 (0)