mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
469e826007
wip wip
26 lines
531 B
PHP
26 lines
531 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the PHPFlasher package.
|
|
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
|
|
*/
|
|
|
|
namespace Flasher\Tests\Symfony;
|
|
|
|
use Flasher\Symfony\Bridge\Bridge;
|
|
|
|
class TestCase extends \Flasher\Tests\Prime\TestCase
|
|
{
|
|
protected function getContainer()
|
|
{
|
|
$kernel = new FlasherKernel();
|
|
$kernel->boot();
|
|
|
|
if (Bridge::versionCompare('4.1', '>=')) {
|
|
return $kernel->getContainer()->get('test.service_container');
|
|
}
|
|
|
|
return $kernel->getContainer();
|
|
}
|
|
}
|