File tree 7 files changed +27
-121
lines changed
7 files changed +27
-121
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ phpunit.xml
4
4
.buildpath
5
5
.settings
6
6
vendor
7
+ composer.lock
Original file line number Diff line number Diff line change 4
4
- 5.3
5
5
6
6
env :
7
- - SYMFONY_VERSION=v2.2
8
- - SYMFONY_VERSION=v2.3
7
+ - SYMFONY_VERSION=2.3.* DOCTRINE_ORM_VERSION=2.4.* DOCTRINE_BUNDLE_VERSION=1.2.*
8
+ - SYMFONY_VERSION=2.4.* DOCTRINE_ORM_VERSION=2.4.* DOCTRINE_BUNDLE_VERSION=1.2.*
9
9
10
- before_script :
11
- - php Tests/vendors.php
10
+ before_script :
11
+ - composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update
12
+ - composer require doctrine/doctrine-bundle:${DOCTRINE_BUNDLE_VERSION} --no-update
13
+ - composer require doctrine/orm:${DOCTRINE_ORM_VERSION} --no-update
14
+ - composer require doctrine/data-fixtures:1.0.*
15
+ - composer require twig/twig:1.15.*
16
+ - composer update --dev
12
17
13
18
script : phpunit
Original file line number Diff line number Diff line change 5
5
use Lexik \Bundle \CurrencyBundle \Tests \Fixtures \CurrencyData ;
6
6
7
7
use Doctrine \ORM \EntityManager ;
8
- use Doctrine \ORM \Mapping \DefaultQuoteStrategy ;
9
8
use Doctrine \Common \DataFixtures \Executor \ORMExecutor ;
10
9
use Doctrine \Common \DataFixtures \Purger \ORMPurger ;
11
10
use Doctrine \Common \Annotations \AnnotationReader ;
@@ -81,10 +80,13 @@ protected function getMockSqliteEntityManager()
81
80
->will ($ this ->returnValue ('Doctrine\ORM\Mapping\ClassMetadataFactory ' ));
82
81
$ config ->expects ($ this ->any ())
83
82
->method ('getDefaultRepositoryClassName ' )
84
- ->will ($ this ->returnValue ('Doctrine \\ORM \\EntityRepository ' ));
83
+ ->will ($ this ->returnValue ('Doctrine\ORM\EntityRepository ' ));
84
+ $ config ->expects ($ this ->any ())
85
+ ->method ('getRepositoryFactory ' )
86
+ ->will ($ this ->returnValue (new \Doctrine \ORM \Repository \DefaultRepositoryFactory ()));
85
87
$ config ->expects ($ this ->any ())
86
88
->method ('getQuoteStrategy ' )
87
- ->will ($ this ->returnValue (new DefaultQuoteStrategy ()));
89
+ ->will ($ this ->returnValue (new \ Doctrine \ ORM \ Mapping \ DefaultQuoteStrategy ()));
88
90
89
91
$ conn = array (
90
92
'driver ' => 'pdo_sqlite ' ,
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ if (!$loader = include __DIR__.'/../vendor/autoload.php') {
4
+ $nl = PHP_SAPI === 'cli' ? PHP_EOL : '<br />';
5
+ echo "$nl$nl";
6
+ die('You must set up the project dependencies.'.$nl.
7
+ 'Run the following commands in '.dirname(__DIR__).':'.$nl.$nl.
8
+ 'curl -s http://getcomposer.org/installer | php'.$nl.
9
+ 'php composer.phar install'.$nl);
10
+ }
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- if (file_exists ($ file = __DIR__ .'/../ autoload.php ' )) {
3
+ if (file_exists ($ file = __DIR__ .'/autoload.php ' )) {
4
4
require_once $ file ;
5
- } elseif (file_exists ($ file = __DIR__ .'/../ autoload.php.dist ' )) {
5
+ } elseif (file_exists ($ file = __DIR__ .'/autoload.php.dist ' )) {
6
6
require_once $ file ;
7
7
}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments