use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\AbstractWebTestCase;
use Symfony\Component\HttpFoundation\Response;
class KernelBrowserTest extends AbstractWebTestCase
{ public function testRebootKernelBetweenRequests() { $mock =
$this->
getKernelMock();
$mock->
expects($this->
once())->
method('shutdown'
);
$client =
new KernelBrowser($mock);
$client->
request('GET', '/'
);
$client->
request('GET', '/'
);
} public function testDisabledRebootKernel() { $mock =
$this->
getKernelMock();
$mock->
expects($this->
never())->
method('shutdown'
);
$client =
new KernelBrowser($mock);
$client->
disableReboot();