Skip to content

Commit

Permalink
require doctrine/annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Apr 23, 2022
1 parent b66c4ba commit 4eb6b6d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 25 deletions.
8 changes: 6 additions & 2 deletions Tests/Functional/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

declare(strict_types=1);

namespace Qandidate\Bundle\ToggleBundle\Tests\Functional;

use Qandidate\Bundle\ToggleBundle\QandidateToggleBundle;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;

Expand All @@ -19,8 +23,8 @@ class AppKernel extends Kernel
public function registerBundles()
{
return [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Qandidate\Bundle\ToggleBundle\QandidateToggleBundle(),
new FrameworkBundle(),
new QandidateToggleBundle(),
];
}

Expand Down
4 changes: 1 addition & 3 deletions Tests/Functional/WebTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class WebTestCase extends BaseWebTestCase
{
protected static function getKernelClass()
{
require __DIR__.'/AppKernel.php';

return 'AppKernel';
return AppKernel::class;
}
}
18 changes: 0 additions & 18 deletions Tests/bootstrap.php

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"symfony/http-foundation": "^4.4.7||^5.0.7",
"symfony/http-kernel": "^4.4.13||^5.1.5",
"symfony/security-bundle": "^4.4||^5.0",
"doctrine/common": "^2.13||^3.0"
"doctrine/common":"^2.13||^3.0",
"doctrine/annotations": "^1.13"
},
"require-dev": {
"symfony/browser-kit": "^4.4||^5.0",
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="Tests/bootstrap.php"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Qandidate Feature Toggle Bundle Test Suite">
Expand Down

0 comments on commit 4eb6b6d

Please sign in to comment.