mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-12 09:09:45 +01:00
21 lines
357 B
PHP
21 lines
357 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Psl\Tests\Fun;
|
||
|
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
use Psl\Fun;
|
||
|
|
||
|
class RethrowTest extends TestCase
|
||
|
{
|
||
|
public function testRethrow(): void
|
||
|
{
|
||
|
$exception = new \Exception('foo');
|
||
|
$rethrow = Fun\rethrow();
|
||
|
|
||
|
$this->expectExceptionObject($exception);
|
||
|
$rethrow($exception);
|
||
|
}
|
||
|
}
|