mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Test suite cleanups
This commit is contained in:
parent
ecc4fb9897
commit
769b435cf3
@ -11,9 +11,6 @@
|
|||||||
|
|
||||||
namespace Nelmio\ApiDocBundle\Tests\Functional;
|
namespace Nelmio\ApiDocBundle\Tests\Functional;
|
||||||
|
|
||||||
// get the autoload file
|
|
||||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
|
||||||
|
|
||||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||||
use Symfony\Component\HttpKernel\Kernel;
|
use Symfony\Component\HttpKernel\Kernel;
|
||||||
|
|
||||||
|
@ -66,7 +66,13 @@ abstract class WebTestCase extends BaseWebTestCase
|
|||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
|
$this->deleteTmpDir();
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function tearDown()
|
||||||
|
{
|
||||||
|
parent::tearDown();
|
||||||
$this->deleteTmpDir();
|
$this->deleteTmpDir();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,3 +16,6 @@ if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader
|
|||||||
if (class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
|
if (class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
|
||||||
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
\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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user