for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\GBProd\ElasticaSpecificationBundle;
use GBProd\ElasticaSpecificationBundle\DependencyInjection\Compiler\ExpressionBuilderPass;
use GBProd\ElasticaSpecificationBundle\ElasticaSpecificationBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Tests for ElasticaSpecificationBundle
*
* @author GBProd <[email protected]>
*/
class ElasticaSpecificationBundleTest extends \PHPUnit_Framework_TestCase
{
public function testConstruction()
$bundle = new ElasticaSpecificationBundle();
$this->assertInstanceOf(ElasticaSpecificationBundle::class, $bundle);
$this->assertInstanceOf(Bundle::class, $bundle);
}
public function testBuildAddCompilerPass()
$container = $this->prophesize(ContainerBuilder::class);
$container
->addCompilerPass(new ExpressionBuilderPass())
->shouldBeCalled()
;
$bundle->build($container->reveal());