Fix visibility for setUp, tearDown to match PHPUnit base class
This commit is contained in:
parent
d8294d3ac3
commit
8649090774
|
|
@ -25,7 +25,7 @@ class RoutingTest extends TestCase
|
||||||
/** @var ResponseInterface */
|
/** @var ResponseInterface */
|
||||||
private $response;
|
private $response;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ class DispatchStackTest extends TestCase
|
||||||
private $response;
|
private $response;
|
||||||
private $next;
|
private $next;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->request = new ServerRequest();
|
$this->request = new ServerRequest();
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class DispatcherTest extends TestCase
|
||||||
/** @var ResponseInterface */
|
/** @var ResponseInterface */
|
||||||
private $stubResponse;
|
private $stubResponse;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->request = new ServerRequest();
|
$this->request = new ServerRequest();
|
||||||
$this->response = new Response();
|
$this->response = new Response();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ class UploadedFileTest extends TestCase
|
||||||
private $tmpName;
|
private $tmpName;
|
||||||
private $movePath;
|
private $movePath;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
UploadedFileState::$php_sapi_name = 'cli';
|
UploadedFileState::$php_sapi_name = 'cli';
|
||||||
|
|
@ -19,7 +19,7 @@ class UploadedFileTest extends TestCase
|
||||||
$this->movePath = tempnam(sys_get_temp_dir(), 'tst');
|
$this->movePath = tempnam(sys_get_temp_dir(), 'tst');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tearDown(): void
|
protected function tearDown(): void
|
||||||
{
|
{
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
if (file_exists($this->tmpName)) {
|
if (file_exists($this->tmpName)) {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class MethodMapTest extends TestCase
|
||||||
private $next;
|
private $next;
|
||||||
private $middleware;
|
private $middleware;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->request = new ServerRequest();
|
$this->request = new ServerRequest();
|
||||||
$this->response = new Response();
|
$this->response = new Response();
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ class RegexRouteTest extends TestCase
|
||||||
|
|
||||||
private $methodMap;
|
private $methodMap;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->methodMap = $this->prophesize(MethodMap::class);
|
$this->methodMap = $this->prophesize(MethodMap::class);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class RouteFactoryTest extends TestCase
|
||||||
|
|
||||||
private $dispatcher;
|
private $dispatcher;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->dispatcher = $this->prophesize(DispatcherInterface::class);
|
$this->dispatcher = $this->prophesize(DispatcherInterface::class);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class RouteTest extends TestCase
|
||||||
private $methodMap;
|
private $methodMap;
|
||||||
private $route;
|
private $route;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->methodMap = $this->prophesize(MethodMap::class);
|
$this->methodMap = $this->prophesize(MethodMap::class);
|
||||||
$this->methodMap->register(Argument::cetera());
|
$this->methodMap->register(Argument::cetera());
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class TemplateRouteTest extends TestCase
|
||||||
|
|
||||||
private $methodMap;
|
private $methodMap;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
$this->methodMap = $this->prophesize(MethodMap::class);
|
$this->methodMap = $this->prophesize(MethodMap::class);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class RouterTest extends TestCase
|
||||||
private $router;
|
private $router;
|
||||||
private $next;
|
private $next;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class ServerTest extends TestCase
|
||||||
/** @var Server */
|
/** @var Server */
|
||||||
private $server;
|
private $server;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ class TransmitterTest extends TestCase
|
||||||
private $response;
|
private $response;
|
||||||
private $body;
|
private $body;
|
||||||
|
|
||||||
public function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
HeaderStack::reset();
|
HeaderStack::reset();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue