for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AbterPhp\Admin\Psr7;
use Nyholm\Psr7\Response;
use PHPUnit\Framework\TestCase;
use Opulence\Http\Responses\ResponseHeaders;
class ResponseFactoryTest extends TestCase
{
/** @var ResponseFactory - System Under Test */
protected $sut;
public function setUp(): void
parent::setUp();
$this->sut = new ResponseFactory();
}
public function testCreate()
$response = $this->sut->create();
$this->assertInstanceOf(Response::class, $response);
$this->assertSame(ResponseHeaders::HTTP_INTERNAL_SERVER_ERROR, $response->getStatusCode());