mirror of
https://github.com/shufflingpixels/php-io.git
synced 2026-06-16 05:04:59 +02:00
Initial commit
This commit is contained in:
commit
c677cfccd4
23 changed files with 5553 additions and 0 deletions
9
tests/Unit/ExceptionTest.php
Normal file
9
tests/Unit/ExceptionTest.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
use Shufflingpixels\IO\Exception\EndOfStreamException;
|
||||
use Shufflingpixels\IO\Exception\IOException;
|
||||
|
||||
it('keeps the exception hierarchy stable', function () {
|
||||
expect(new IOException('io'))->toBeInstanceOf(Exception::class)
|
||||
->and(new EndOfStreamException('eos'))->toBeInstanceOf(IOException::class);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue