Skip to content

Commit

Permalink
Merge pull request #201 from FriendsOfSymfony/hhvm-symfony-travis
Browse files Browse the repository at this point in the history
fix test setup with symfony backend
  • Loading branch information
ddeboer committed Jun 1, 2015
2 parents 64c4acd + 2a8ec17 commit 8332e2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
13 changes: 9 additions & 4 deletions tests/Functional/Fixtures/Symfony/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernel;
use Symfony\Component\HttpKernel\HttpKernelInterface;

class AppKernel extends HttpKernel
/**
* A simplistic kernel that is actually the whole application.
*/
class AppKernel implements HttpKernelInterface
{
public function __construct() {}

/**
* This simplistic kernel handles the request immediately inline.
*
* {@inheritDoc}
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
switch ($request->getPathInfo()) {
Expand Down
14 changes: 0 additions & 14 deletions tests/Functional/SymfonyProxyClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
*/
class SymfonyProxyClientTest extends SymfonyTestCase
{
public function setUp()
{
/*
* We did not figure out how to run this test with hhvm. Help welcome!
* On travis, connection is closed after the headers are sent without providing
* anything in either the hhvm or apache log.
*/
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Test not working with hhvm as backend server');
}

parent::setUp();
}

public function testPurge()
{
$this->assertMiss($this->getResponse('/symfony.php/cache'));
Expand Down

0 comments on commit 8332e2e

Please sign in to comment.