for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ChangelogGenerator\Tests;
use ChangelogGenerator\IssueClientResponse;
use PHPUnit\Framework\TestCase;
final class IssueClientResponseTest extends TestCase
{
/** @var mixed[] */
private $body;
/** @var string|null */
private $nextUrl;
/** @var IssueClientResponse */
private $issueClientResponse;
public function testGetBody() : void
self::assertEquals($this->body, $this->issueClientResponse->getBody());
}
public function testGetNextUrl() : void
self::assertEquals($this->nextUrl, $this->issueClientResponse->getNextUrl());
protected function setUp() : void
$this->body = ['body' => true];
$this->nextUrl = 'https://www.google.com';
$this->issueClientResponse = new IssueClientResponse(
$this->body,
$this->nextUrl
);