php-io/tests/Unit/ExceptionTest.php
2026-04-22 07:15:24 +02:00

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);
});