Test suite cleanups

This commit is contained in:
Jordi Boggiano 2013-10-29 14:41:13 +01:00
parent ecc4fb9897
commit 769b435cf3
3 changed files with 9 additions and 3 deletions

View File

@ -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;

View File

@ -66,7 +66,13 @@ abstract class WebTestCase extends BaseWebTestCase
public function setUp()
{
$this->deleteTmpDir();
parent::setUp();
}
public function tearDown()
{
parent::tearDown();
$this->deleteTmpDir();
}
}

View File

@ -16,3 +16,6 @@ if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader
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');