Skip to content

Commit

Permalink
Fixed 2.x tests
Browse files Browse the repository at this point in the history
  • Loading branch information
XWB committed Jun 28, 2017
1 parent 8d847e4 commit f997866
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Tests/Functional/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ public function getLogDir()
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->rootConfig);
if(class_exists('Symfony\Component\Asset\Package')) {
$loader->load(__DIR__.'/config/assets.yml');
}
}

public function serialize()
Expand Down
2 changes: 0 additions & 2 deletions Tests/Functional/app/config/assets.yml

This file was deleted.

9 changes: 9 additions & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

$file = __DIR__.'/../vendor/autoload.php';
if (!file_exists($file)) {
throw new RuntimeException('Install dependencies using composer to run the test suite.');
}

$autoload = require $file;
Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($autoload, 'loadClass'));
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="vendor/autoload.php" color="true">
<phpunit bootstrap="./Tests/bootstrap.php" colors="true">
<php>
<ini name="xdebug.max_nesting_level" value="200" />
</php>
Expand Down

0 comments on commit f997866

Please sign in to comment.