for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SMartins\Exceptions\Tests\Unit;
use Exception;
use SMartins\Exceptions\JSONAPI\Error;
use SMartins\Exceptions\Tests\TestCase;
use SMartins\Exceptions\Handlers\Handler;
class HandlerTest extends TestCase
{
public function testHandle()
$exception = new Exception('Test exception', 1);
$handler = new Handler($exception);
$this->assertInstanceOf(Error::class, $handler->handle());
}