1 | <?php |
||
7 | class BaseTestCase extends WebTestCase |
||
8 | { |
||
9 | protected static function getKernelClass() |
||
10 | { |
||
11 | require_once __DIR__.'/app/AppKernel.php'; |
||
12 | |||
13 | return 'Happyr\GoogleAnalyticsBundle\Tests\Functional\app\AppKernel'; |
||
14 | } |
||
15 | |||
16 | protected static function createKernel(array $options = []) |
||
17 | { |
||
18 | $class = self::getKernelClass(); |
||
19 | |||
20 | return new $class( |
||
21 | isset($options['config']) ? $options['config'] : 'default.yml' |
||
22 | ); |
||
23 | } |
||
24 | } |
||
25 |