Skip to content

Commit

Permalink
Test suite cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Oct 29, 2013
1 parent ecc4fb9 commit 769b435
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Tests/Fixtures/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

namespace Nelmio\ApiDocBundle\Tests\Functional;

// get the autoload file
require_once __DIR__.'/../../../vendor/autoload.php';

use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;

Expand Down
6 changes: 6 additions & 0 deletions Tests/WebTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ protected static function createKernel(array $options = array())

public function setUp()
{
$this->deleteTmpDir();
parent::setUp();
}

public function tearDown()
{
parent::tearDown();
$this->deleteTmpDir();
}
}
3 changes: 3 additions & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ function includeIfExists($file)
if (class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
}

// force loading the ApiDoc annotation since the composer target-dir autoloader does not run through $loader::loadClass
class_exists('Nelmio\ApiDocBundle\Annotation\ApiDoc');

0 comments on commit 769b435

Please sign in to comment.