Skip to content

Commit

Permalink
Merge pull request #28 from broadway/revert-26-functional-test
Browse files Browse the repository at this point in the history
Revert "functional test"
  • Loading branch information
asm89 authored Mar 9, 2017
2 parents a98f317 + 1f6f33d commit 72a9388
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 151 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
/vendor/
composer.lock
test/Functional/cache
test/Functional/logs
9 changes: 3 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,12 @@
"require-dev": {
"broadway/event-store-dbal": "^0.1",
"elasticsearch/elasticsearch": "~1.0|^2.0",
"symfony/framework-bundle": "^2.3|^3.0",
"instaclick/base-test-bundle": "~0.5",
"monolog/monolog": "~1.8",
"symfony/proxy-manager-bridge": "^2.3|^3.0",
"symfony/proxy-manager-bridge": "~2.4",
"phpunit/phpunit": "^4.8",
"matthiasnoback/symfony-config-test": "^2.0",
"matthiasnoback/symfony-dependency-injection-test": "^1.1",
"symfony/browser-kit": "^2.3|^3.0",
"symfony/property-access": "^2.3|^3.0",
"matthiasnoback/symfony-service-definition-validator": "^1.2"
"matthiasnoback/symfony-dependency-injection-test": "^1.1"
},
"suggest": {
"psr/log-implementation": "Implementation for PSR3, LoggerInterface"
Expand Down
3 changes: 0 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,4 @@
<group>mongo</group>
</exclude>
</groups>
<php>
<server name="KERNEL_DIR" value="test/Functional/" />
</php>
</phpunit>
9 changes: 0 additions & 9 deletions src/BroadwayBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
use Broadway\Bundle\BroadwayBundle\DependencyInjection\RegisterMetadataEnricherSubscriberPass;
use Broadway\Bundle\BroadwayBundle\DependencyInjection\RegisterSagaCompilerPass;
use Broadway\Bundle\BroadwayBundle\DependencyInjection\RegisterSerializersCompilerPass;
use Matthias\SymfonyServiceDefinitionValidator\Compiler\ValidateServiceDefinitionsPass;
use Symfony\Component\Console\Application;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

Expand Down Expand Up @@ -75,13 +73,6 @@ public function build(ContainerBuilder $container)
$container->addCompilerPass(
new RegisterSerializersCompilerPass()
);

if ($container->getParameter('kernel.debug')) {
$container->addCompilerPass(
new ValidateServiceDefinitionsPass(),
PassConfig::TYPE_AFTER_REMOVING
);
}
}

/**
Expand Down
21 changes: 21 additions & 0 deletions test/BroadwayBundleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Broadway\Bundle\BroadwayBundle;

use Symfony\Component\DependencyInjection\ContainerBuilder;

class BroadwayBundleTest extends TestCase
{
/**
* @test
*/
public function it_builds_the_bundle()
{
$container = new ContainerBuilder();

$bundle = new BroadwayBundle();
$bundle->build($container);

$container->compile();
}
}
39 changes: 0 additions & 39 deletions test/Functional/AppKernel.php

This file was deleted.

72 changes: 0 additions & 72 deletions test/Functional/BroadwayBundleTest.php

This file was deleted.

20 changes: 0 additions & 20 deletions test/Functional/config_functional.yml

This file was deleted.

0 comments on commit 72a9388

Please sign in to comment.