forked from lexik/LexikMailerBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use composer to load test lib, and run test with SF 2.3 and 2.4
- Loading branch information
Cédric Girard
committed
Feb 10, 2014
1 parent
0f0184f
commit a5f982c
Showing
8 changed files
with
43 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ phpunit.xml | |
.project | ||
.buildpath | ||
.settings | ||
vendor | ||
vendor | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
use Doctrine\Common\Annotations\AnnotationRegistry; | ||
|
||
if (!$loader = include __DIR__.'/../vendor/autoload.php') { | ||
$nl = PHP_SAPI === 'cli' ? PHP_EOL : '<br />'; | ||
echo "$nl$nl"; | ||
die('You must set up the project dependencies.'.$nl. | ||
'Run the following commands in '.dirname(__DIR__).':'.$nl.$nl. | ||
'curl -s http://getcomposer.org/installer | php'.$nl. | ||
'php composer.phar install'.$nl); | ||
} | ||
|
||
AnnotationRegistry::registerAutoloadNamespace( | ||
'Symfony\Component\Validator\Constraints', | ||
__DIR__.'/../vendor/symfony/validator' | ||
); | ||
|
||
AnnotationRegistry::registerAutoloadNamespace( | ||
'Symfony\Bridge\Doctrine\Validator\Constraints', | ||
__DIR__.'/../vendor/symfony/doctrine-bridge' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
if (file_exists($file = __DIR__.'/../autoload.php')) { | ||
if (file_exists($file = __DIR__.'/autoload.php')) { | ||
require_once $file; | ||
} elseif (file_exists($file = __DIR__.'/../autoload.php.dist')) { | ||
} elseif (file_exists($file = __DIR__.'/autoload.php.dist')) { | ||
require_once $file; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.