Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
Sergio Brighenti 2020-04-14 22:09:23 +00:00 committed by StyleCI Bot
parent ce2f0ef72d
commit e6641fe1a9
3 changed files with 4 additions and 8 deletions

View file

@ -9,7 +9,6 @@ use Symfony\Component\BrowserKit\Response;
class Client extends AbstractBrowser
{
protected function doRequest($request)
{
define('BASE_DIR', realpath(__DIR__.'/../').DIRECTORY_SEPARATOR);
@ -22,4 +21,4 @@ class Client extends AbstractBrowser
return new Response($response->getBody()->getContents(), $response->getStatusCode(), $response->getHeaders());
}
}
}

View file

@ -3,7 +3,6 @@
namespace Tests\Feature;
use Tests\TestCase;
class LoginControllerTest extends TestCase
@ -16,5 +15,4 @@ class LoginControllerTest extends TestCase
//$this->client->getResponse();
$this->assertSame(200, $this->client->getResponse()->getStatusCode());
}
}
}

View file

@ -1,6 +1,7 @@
<?php
namespace Tests;
use PHPUnit\Framework\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
@ -10,11 +11,9 @@ abstract class TestCase extends BaseTestCase
protected function setUp()
{
$_SERVER['HTTP_HOST'] = 'http://localhost';
$_SERVER['HTTPS'] = false;
$this->client = new Client();
}
}
}