Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

Commit 5d6e66f

Browse files
Require Symfony components instead of symfony/symfony
1 parent 49b27ae commit 5d6e66f

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

behat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ default:
1515
kernel:
1616
env: test
1717
debug: true
18-
path: tests/App/AppKernel.php
18+
class: AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\App\AppKernel
1919
bootstrap: tests/App/bootstrap.php
2020
Behat\MinkExtension:
2121
sessions:

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@
1414
"require" : {
1515
"php": ">=7.0",
1616
"ext-mbstring": "*",
17-
"symfony/symfony": "~3.4|~4.0",
18-
"abraham/twitteroauth": "~0.6"
17+
"symfony/config": "~3.4|~4.0",
18+
"symfony/form": "~3.4|~4.0",
19+
"symfony/framework-bundle": "~3.4|~4.0",
20+
"symfony/templating": "~3.4|~4.0",
21+
"symfony/security-csrf": "~3.4|~4.0",
22+
"doctrine/orm": "^2.4.8",
23+
"abraham/twitteroauth": "~0.6",
24+
"symfony/var-dumper": "~3.4|~4.0"
1925
},
2026
"require-dev": {
21-
"doctrine/orm": "^2.4.8",
2227
"symfony/monolog-bundle": "~3.1",
2328
"doctrine/doctrine-fixtures-bundle": "^3.0",
2429
"liip/functional-test-bundle": "~2.0@alpha",

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
>
1212
<php>
1313
<server name="KERNEL_DIR" value="tests/App" />
14+
<server name="KERNEL_CLASS" value="AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\App\AppKernel" />
1415
</php>
1516

1617
<testsuites>

tests/App/AppKernel.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
// Tests/Controller/App/AppKernel.php
3+
namespace AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\App;
44

55
/** @see http://www.whitewashing.de/2012/02/25/symfony2_controller_testing.html */
66
use Symfony\Component\Config\Loader\LoaderInterface;
@@ -24,14 +24,13 @@ public function __construct($environment, $debug)
2424
public function registerBundles()
2525
{
2626
$bundles = [
27-
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
28-
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
29-
new Symfony\Bundle\TwigBundle\TwigBundle(),
30-
new Symfony\Bundle\MonologBundle\MonologBundle(),
31-
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
32-
new AlexisLefebvre\Bundle\AsyncTweetsBundle\AsyncTweetsBundle(),
33-
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
34-
new Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),
27+
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
28+
new \Symfony\Bundle\TwigBundle\TwigBundle(),
29+
new \Symfony\Bundle\MonologBundle\MonologBundle(),
30+
new \Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
31+
new \AlexisLefebvre\Bundle\AsyncTweetsBundle\AsyncTweetsBundle(),
32+
new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
33+
new \Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),
3534
];
3635

3736
return $bundles;

tests/App/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ monolog:
2323
handler: nested
2424
nested:
2525
type: stream
26-
path: %kernel.logs_dir%/%kernel.environment%.log
26+
path: "%kernel.logs_dir%/%kernel.environment%.log"
2727
level: debug
2828

2929
liip_functional_test:
@@ -36,7 +36,7 @@ doctrine:
3636
connections:
3737
default:
3838
driver: pdo_sqlite
39-
path: %kernel.cache_dir%/test.db
39+
path: "%kernel.cache_dir%/test.db"
4040
orm:
4141
auto_generate_proxy_classes: "%kernel.debug%"
4242
auto_mapping: true

0 commit comments

Comments
 (0)