mirror of
https://github.com/shufflingpixels/php-io.git
synced 2026-06-16 05:04:59 +02:00
9 lines
322 B
PHP
9 lines
322 B
PHP
<?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);
|
|
});
|