Skip to content

Commit 77c4660

Browse files
committed
Adds BASE_TEST_DIR
1 parent f856ad4 commit 77c4660

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Puphpet/MainBundle/Tests/Unit/BaseTest.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
namespace Puphpet\Tests\Unit;
44

5+
use AppKernel;
56
use Symfony\Component\DependencyInjection\ContainerInterface;
67

78
require_once __DIR__ . '/../../../../../app/AppKernel.php';
89

9-
abstract class TestExtensions extends \PHPUnit_Framework_TestCase
10+
abstract class BaseTest extends \PHPUnit_Framework_TestCase
1011
{
11-
/** @var \AppKernel */
12+
const BASE_TEST_DIR = __DIR__;
13+
14+
/** @var AppKernel */
1215
protected $kernel;
1316

1417
/** @var ContainerInterface */
@@ -20,7 +23,7 @@ public function setUp()
2023
$this->kernel->shutdown();
2124
}
2225

23-
$this->kernel = new \AppKernel('test', true);
26+
$this->kernel = new AppKernel('test', true);
2427
$this->kernel->boot();
2528

2629
$this->container = $this->kernel->getContainer();

0 commit comments

Comments
 (0)