Fix propel service definition

This commit is contained in:
Tim Nagel 2014-06-25 13:18:02 +10:00
parent f6264f4149
commit ae03b3f3cf
3 changed files with 2 additions and 21 deletions

View file

@ -19,7 +19,7 @@
</call>
</service>
<service id="fos_elastica.manager.propel" class="%fos_elastica.manager.class%">
<service id="fos_elastica.manager.propel" class="FOS\ElasticaBundle\Doctrine\RepositoryManager">
<argument type="service" id="annotation_reader"/>
</service>
</services>

View file

@ -1,19 +0,0 @@
<?php
if (file_exists($file = __DIR__.'/../vendor/autoload.php')) {
$loader = require_once $file;
} else {
throw new RuntimeException('Install dependencies to run test suite.');
}
spl_autoload_register(function($class) {
if (0 === strpos($class, 'FOS\\ElasticaBundle\\')) {
$path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 2)).'.php';
if (!stream_resolve_include_path($path)) {
return false;
}
require_once $path;
return true;
}
return false;
});

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./Tests/bootstrap.php" colors="true">
<phpunit bootstrap="./vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="FOSElasticaBundle Test Suite">
<directory>./Tests</directory>