Skip to content

Commit 4eb6b6d

Browse files
committed
require doctrine/annotations
1 parent b66c4ba commit 4eb6b6d

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

Tests/Functional/AppKernel.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
declare(strict_types=1);
1313

14+
namespace Qandidate\Bundle\ToggleBundle\Tests\Functional;
15+
16+
use Qandidate\Bundle\ToggleBundle\QandidateToggleBundle;
17+
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1418
use Symfony\Component\Config\Loader\LoaderInterface;
1519
use Symfony\Component\HttpKernel\Kernel;
1620

@@ -19,8 +23,8 @@ class AppKernel extends Kernel
1923
public function registerBundles()
2024
{
2125
return [
22-
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
23-
new Qandidate\Bundle\ToggleBundle\QandidateToggleBundle(),
26+
new FrameworkBundle(),
27+
new QandidateToggleBundle(),
2428
];
2529
}
2630

Tests/Functional/WebTestCase.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class WebTestCase extends BaseWebTestCase
1919
{
2020
protected static function getKernelClass()
2121
{
22-
require __DIR__.'/AppKernel.php';
23-
24-
return 'AppKernel';
22+
return AppKernel::class;
2523
}
2624
}

Tests/bootstrap.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"symfony/http-foundation": "^4.4.7||^5.0.7",
2929
"symfony/http-kernel": "^4.4.13||^5.1.5",
3030
"symfony/security-bundle": "^4.4||^5.0",
31-
"doctrine/common": "^2.13||^3.0"
31+
"doctrine/common":"^2.13||^3.0",
32+
"doctrine/annotations": "^1.13"
3233
},
3334
"require-dev": {
3435
"symfony/browser-kit": "^4.4||^5.0",

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
bootstrap="Tests/bootstrap.php"
11+
bootstrap="vendor/autoload.php"
1212
>
1313
<testsuites>
1414
<testsuite name="Qandidate Feature Toggle Bundle Test Suite">

0 commit comments

Comments
 (0)