Skip to content

Commit 0aa406f

Browse files
committed
get tests running
1 parent fda8c53 commit 0aa406f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<server name="KERNEL_DIR" value="app/" />
3131

3232
<!-- ###+ symfony/framework-bundle ### -->
33-
<env name="APP_ENV" value="dev"/>
33+
<env name="APP_ENV" value="test"/>
3434
<env name="APP_SECRET" value="3780da4e3c8b2225171dc1b6ddba5599"/>
3535
<!-- env name="TRUSTED_PROXIES" value="127.0.0.1,127.0.0.2" -->
3636
<!-- env name="TRUSTED_HOSTS" value="localhost,example.com" -->

tests/Functional/WebTestCase.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace App\Tests\Functional;
1313

14+
use App\Kernel;
1415
use Liip\FunctionalTestBundle\Test\WebTestCase as BaseWebTestCase;
1516
use Symfony\Component\HttpFoundation\Response;
1617

@@ -40,7 +41,7 @@ protected function createClientAuthenticated(array $options = [], array $server
4041
'PHP_AUTH_PW' => 'admin',
4142
]);
4243

43-
return $this->createClient($options, $server);
44+
return self::createClient($options, $server);
4445
}
4546

4647
/**
@@ -71,4 +72,9 @@ protected function assertResponseSuccess(Response $response, $url = '')
7172
$exception ? 'Exception: "'.trim($exception).'" on url: '.$url : null
7273
);
7374
}
75+
76+
protected static function getKernelClass()
77+
{
78+
return Kernel::class;
79+
}
7480
}

0 commit comments

Comments
 (0)