Skip to content
Browse files

made usage of Composer autoloader for subtree-split unit tests

  • Loading branch information...
1 parent c290776 commit b27b7490252102a4943c939a8438c6cfd9ee25f3 @fabpot fabpot committed Nov 9, 2012
Showing with 209 additions and 747 deletions.
  1. +4 −0 src/Symfony/Bridge/Doctrine/.gitignore
  2. +3 −17 src/Symfony/Bridge/Doctrine/README.md
  3. +2 −58 src/Symfony/Bridge/Doctrine/Tests/bootstrap.php
  4. +10 −0 src/Symfony/Bridge/Doctrine/composer.json
  5. +1 −1 src/Symfony/Bridge/Doctrine/phpunit.xml.dist
  6. +4 −0 src/Symfony/Bridge/Monolog/.gitignore
  7. +3 −8 src/Symfony/Bridge/Monolog/README.md
  8. +0 −34 src/Symfony/Bridge/Monolog/Tests/bootstrap.php
  9. +1 −1 src/Symfony/Bridge/Monolog/phpunit.xml.dist
  10. +4 −0 src/Symfony/Bridge/Propel1/.gitignore
  11. +3 −12 src/Symfony/Bridge/Propel1/README.md
  12. +0 −36 src/Symfony/Bridge/Propel1/Tests/bootstrap.php
  13. +1 −1 src/Symfony/Bridge/Propel1/phpunit.xml.dist
  14. +2 −0 src/Symfony/Bridge/Twig/.gitignore
  15. +3 −3 src/Symfony/Bridge/Twig/README.md
  16. +0 −14 src/Symfony/Bridge/Twig/Tests/bootstrap.php
  17. +1 −1 src/Symfony/Bridge/Twig/phpunit.xml.dist
  18. +2 −0 src/Symfony/Component/BrowserKit/.gitignore
  19. +3 −6 src/Symfony/Component/BrowserKit/README.md
  20. +0 −22 src/Symfony/Component/BrowserKit/Tests/bootstrap.php
  21. +1 −1 src/Symfony/Component/BrowserKit/phpunit.xml.dist
  22. +2 −0 src/Symfony/Component/ClassLoader/.gitignore
  23. +3 −6 src/Symfony/Component/ClassLoader/README.md
  24. +0 −22 src/Symfony/Component/ClassLoader/Tests/bootstrap.php
  25. +1 −1 src/Symfony/Component/ClassLoader/phpunit.xml.dist
  26. +4 −0 src/Symfony/Component/Config/.gitignore
  27. +4 −1 src/Symfony/Component/Config/README.md
  28. +0 −18 src/Symfony/Component/Config/Tests/bootstrap.php
  29. +1 −1 src/Symfony/Component/Config/phpunit.xml.dist
  30. +4 −0 src/Symfony/Component/Console/.gitignore
  31. +3 −1 src/Symfony/Component/Console/README.md
  32. +0 −18 src/Symfony/Component/Console/Tests/bootstrap.php
  33. +1 −1 src/Symfony/Component/Console/phpunit.xml.dist
  34. +4 −0 src/Symfony/Component/CssSelector/.gitignore
  35. +3 −1 src/Symfony/Component/CssSelector/README.md
  36. +0 −18 src/Symfony/Component/CssSelector/Tests/bootstrap.php
  37. +1 −1 src/Symfony/Component/CssSelector/phpunit.xml.dist
  38. +2 −0 src/Symfony/Component/DependencyInjection/.gitignore
  39. +3 −6 src/Symfony/Component/DependencyInjection/README.md
  40. +0 −22 src/Symfony/Component/DependencyInjection/Tests/bootstrap.php
  41. +1 −1 src/Symfony/Component/DependencyInjection/phpunit.xml.dist
  42. +2 −0 src/Symfony/Component/DomCrawler/.gitignore
  43. +3 −6 src/Symfony/Component/DomCrawler/README.md
  44. +0 −22 src/Symfony/Component/DomCrawler/Tests/bootstrap.php
  45. +1 −1 src/Symfony/Component/DomCrawler/phpunit.xml.dist
  46. +2 −0 src/Symfony/Component/EventDispatcher/.gitignore
  47. +3 −6 src/Symfony/Component/EventDispatcher/README.md
  48. +0 −22 src/Symfony/Component/EventDispatcher/Tests/bootstrap.php
  49. +1 −1 src/Symfony/Component/EventDispatcher/phpunit.xml.dist
  50. +4 −0 src/Symfony/Component/Filesystem/.gitignore
  51. +3 −1 src/Symfony/Component/Filesystem/README.md
  52. +0 −18 src/Symfony/Component/Filesystem/Tests/bootstrap.php
  53. +1 −1 src/Symfony/Component/Filesystem/phpunit.xml.dist
  54. +4 −0 src/Symfony/Component/Finder/.gitignore
  55. +4 −1 src/Symfony/Component/Finder/README.md
  56. +1 −1 src/Symfony/Component/Finder/Tests/FinderTest.php
  57. +0 −18 src/Symfony/Component/Finder/Tests/bootstrap.php
  58. +1 −1 src/Symfony/Component/Finder/phpunit.xml.dist
  59. +2 −0 src/Symfony/Component/Form/.gitignore
  60. +3 −6 src/Symfony/Component/Form/README.md
  61. +0 −22 src/Symfony/Component/Form/Tests/bootstrap.php
  62. +1 −1 src/Symfony/Component/Form/phpunit.xml.dist
  63. +4 −0 src/Symfony/Component/HttpFoundation/.gitignore
  64. +3 −1 src/Symfony/Component/HttpFoundation/README.md
  65. +1 −1 src/Symfony/Component/HttpFoundation/Tests/BinaryFileResponseTest.php
  66. +0 −22 src/Symfony/Component/HttpFoundation/Tests/bootstrap.php
  67. +1 −1 src/Symfony/Component/HttpFoundation/composer.json
  68. +1 −1 src/Symfony/Component/HttpFoundation/phpunit.xml.dist
  69. +2 −0 src/Symfony/Component/HttpKernel/.gitignore
  70. +3 −6 src/Symfony/Component/HttpKernel/README.md
  71. +1 −1 src/Symfony/Component/HttpKernel/Tests/Fixtures/TestClient.php
  72. +0 −22 src/Symfony/Component/HttpKernel/Tests/bootstrap.php
  73. +1 −1 src/Symfony/Component/HttpKernel/phpunit.xml.dist
  74. +3 −0 src/Symfony/Component/Locale/.gitignore
  75. +3 −1 src/Symfony/Component/Locale/README.md
  76. +1 −1 src/Symfony/Component/Locale/phpunit.xml.dist
  77. +4 −0 src/Symfony/Component/OptionsResolver/.gitignore
  78. +3 −1 src/Symfony/Component/OptionsResolver/README.md
  79. +0 −18 src/Symfony/Component/OptionsResolver/Tests/bootstrap.php
  80. +1 −1 src/Symfony/Component/OptionsResolver/phpunit.xml.dist
  81. +4 −0 src/Symfony/Component/Process/.gitignore
  82. +3 −1 src/Symfony/Component/Process/README.md
  83. +0 −18 src/Symfony/Component/Process/Tests/bootstrap.php
  84. +1 −1 src/Symfony/Component/Process/phpunit.xml.dist
  85. +2 −0 src/Symfony/Component/Routing/.gitignore
  86. +3 −6 src/Symfony/Component/Routing/README.md
  87. +0 −22 src/Symfony/Component/Routing/Tests/bootstrap.php
  88. +1 −1 src/Symfony/Component/Routing/phpunit.xml.dist
  89. +2 −0 src/Symfony/Component/Security/.gitignore
  90. +3 −6 src/Symfony/Component/Security/README.md
  91. +0 −22 src/Symfony/Component/Security/Tests/bootstrap.php
  92. +1 −1 src/Symfony/Component/Security/phpunit.xml.dist
  93. +4 −0 src/Symfony/Component/Serializer/.gitignore
  94. +3 −1 src/Symfony/Component/Serializer/README.md
  95. +0 −18 src/Symfony/Component/Serializer/Tests/bootstrap.php
  96. +1 −1 src/Symfony/Component/Serializer/phpunit.xml.dist
  97. +4 −0 src/Symfony/Component/Templating/.gitignore
  98. +3 −1 src/Symfony/Component/Templating/README.md
  99. +0 −18 src/Symfony/Component/Templating/Tests/bootstrap.php
  100. +1 −1 src/Symfony/Component/Templating/phpunit.xml.dist
  101. +2 −0 src/Symfony/Component/Translation/.gitignore
  102. +3 −6 src/Symfony/Component/Translation/README.md
  103. +0 −22 src/Symfony/Component/Translation/Tests/bootstrap.php
  104. +1 −1 src/Symfony/Component/Translation/phpunit.xml.dist
  105. +2 −0 src/Symfony/Component/Validator/.gitignore
  106. +3 −6 src/Symfony/Component/Validator/README.md
  107. +0 −34 src/Symfony/Component/Validator/Tests/bootstrap.php
  108. +1 −1 src/Symfony/Component/Validator/phpunit.xml.dist
  109. +4 −0 src/Symfony/Component/Yaml/.gitignore
  110. +3 −1 src/Symfony/Component/Yaml/README.md
  111. +0 −18 src/Symfony/Component/Yaml/Tests/bootstrap.php
  112. +1 −1 src/Symfony/Component/Yaml/phpunit.xml.dist
View
4 src/Symfony/Bridge/Doctrine/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
20 src/Symfony/Bridge/Doctrine/README.md
@@ -9,20 +9,6 @@ Resources
You can run the unit tests with the following command:
- phpunit -c src/Symfony/Bridge/Doctrine/
-
-If you also want to run the unit tests that depend on other Symfony
-Components, declare the following environment variables before running
-PHPUnit:
-
- export DOCTRINE_COMMON=../path/to/doctrine-common
- export DOCTRINE_DBAL=../path/to/doctrine-dbal
- export DOCTRINE_ORM=../path/to/doctrine
- export DOCTRINE_FIXTURES=../path/to/doctrine-fixtures
- export SYMFONY_HTTP_FOUNDATION=../path/to/HttpFoundation
- export SYMFONY_DEPENDENCY_INJECTION=../path/to/DependencyInjection
- export SYMFONY_FORM=../path/to/Form
- export SYMFONY_SECURITY=../path/to/Security
- export SYMFONY_VALIDATOR=../path/to/Validator
- export SYMFONY_HTTP_KERNEL=../path/to/HttpKernel
- export SYMFONY_EVENT_DISPATCHER=../path/to/EventDispatcher
+ $ cd path/to/Symfony/Bridge/Doctrine/
+ $ composer.phar install --dev
+ $ phpunit
View
60 src/Symfony/Bridge/Doctrine/Tests/bootstrap.php
@@ -9,62 +9,6 @@
* file that was distributed with this source code.
*/
-spl_autoload_register($loader = function ($class) {
- foreach (array(
- 'SYMFONY_HTTP_FOUNDATION' => 'HttpFoundation',
- 'SYMFONY_DEPENDENCY_INJECTION' => 'DependencyInjection',
- 'SYMFONY_FORM' => 'Form',
- 'SYMFONY_SECURITY' => 'Security',
- 'SYMFONY_VALIDATOR' => 'Validator',
- 'SYMFONY_HTTP_KERNEL' => 'HttpKernel',
- 'SYMFONY_EVENT_DISPATCHER' => 'EventDispatcher',
- ) as $env => $name) {
- if (isset($_SERVER[$env]) && 0 === strpos(ltrim($class, '/'), 'Symfony\Component\\'.$name)) {
- if (file_exists($file = $_SERVER[$env].'/'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\\'.$name)).'.php')) {
- require_once $file;
- }
- }
- }
+$loader = require __DIR__.'/../vendor/autoload.php';
- if (isset($_SERVER['SYMFONY_HTTP_FOUNDATION']) && 'SessionHandlerInterface' === ltrim($class, '/')) {
- require_once $_SERVER['SYMFONY_HTTP_FOUNDATION'].'/Resources/stubs/SessionHandlerInterface.php';
- }
-
- if (isset($_SERVER['DOCTRINE_FIXTURES']) && 0 === strpos(ltrim($class, '/'), 'Doctrine\Common\DataFixtures')) {
- if (file_exists($file = $_SERVER['DOCTRINE_FIXTURES'].'/lib/'.str_replace('\\', '/', $class).'.php')) {
- require_once $file;
- }
- }
-
- if (isset($_SERVER['DOCTRINE_COMMON']) && 0 === strpos(ltrim($class, '/'), 'Doctrine\Common')) {
- if (file_exists($file = $_SERVER['DOCTRINE_COMMON'].'/lib/'.str_replace('\\', '/', $class).'.php')) {
- require_once $file;
- }
- }
-
- if (isset($_SERVER['DOCTRINE_DBAL']) && 0 === strpos(ltrim($class, '/'), 'Doctrine\DBAL')) {
- if (file_exists($file = $_SERVER['DOCTRINE_DBAL'].'/lib/'.str_replace('\\', '/', $class).'.php')) {
- require_once $file;
- }
- }
-
- if (isset($_SERVER['DOCTRINE_ORM']) && 0 === strpos(ltrim($class, '/'), 'Doctrine\ORM')) {
- if (file_exists($file = $_SERVER['DOCTRINE_ORM'].'/lib/'.str_replace('\\', '/', $class).'.php')) {
- require_once $file;
- }
- }
-
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Bridge\Doctrine')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Bridge\Doctrine')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (isset($_SERVER['DOCTRINE_COMMON'])) {
- Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(function($class) use ($loader) {
- $loader($class);
-
- return class_exists($class, false);
- });
-}
+Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
View
10 src/Symfony/Bridge/Doctrine/composer.json
@@ -19,6 +19,16 @@
"php": ">=5.3.3",
"doctrine/common": ">=2.2,<2.4-dev"
},
+ "require-dev": {
+ "symfony/dependency-injection": "2.2.*",
+ "symfony/form": "2.2.*",
+ "symfony/http-kernel": "2.2.*",
+ "symfony/security": "2.2.*",
+ "symfony/validator": "2.2.*",
+ "doctrine/data-fixtures": "1.0.*",
+ "doctrine/dbal": ">=2.2,<2.4-dev",
+ "doctrine/orm": ">=2.2.3,<2.4-dev"
+ },
"suggest": {
"symfony/form": "2.2.*",
"symfony/validator": "2.2.*",
View
2 src/Symfony/Bridge/Doctrine/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="tests/bootstrap.php"
+ bootstrap="Tests/bootstrap.php"
>
<testsuites>
<testsuite name="Symfony Doctrine Bridge Test Suite">
View
4 src/Symfony/Bridge/Monolog/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
11 src/Symfony/Bridge/Monolog/README.md
@@ -8,11 +8,6 @@ Resources
You can run the unit tests with the following command:
- phpunit -c src/Symfony/Bridge/Monolog/
-
-If you also want to run the unit tests that depend on other Symfony
-Components, declare the following environment variables before running
-PHPUnit:
-
- export MONOLOG=../path/to/Monolog
- export SYMFONY_HTTP_FOUNDATION=../path/to/HttpFoundation
+ $ cd path/to/Symfony/Bridge/Monolog/
+ $ composer.phar install --dev
+ $ phpunit
View
34 src/Symfony/Bridge/Monolog/Tests/bootstrap.php
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- foreach (array(
- 'SYMFONY_HTTP_FOUNDATION' => 'HttpFoundation',
- ) as $env => $name) {
- if (isset($_SERVER[$env]) && 0 === strpos(ltrim($class, '/'), 'Symfony\Component\\'.$name)) {
- if (file_exists($file = $_SERVER[$env].'/'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\\'.$name)).'.php')) {
- require_once $file;
- }
- }
- }
-
- if (isset($_SERVER['MONOLOG']) && 0 === strpos(ltrim($class, '/'), 'Monolog')) {
- if (file_exists($file = $_SERVER['MONOLOG'].'/src/'.str_replace('\\', '/', $class).'.php')) {
- require_once $file;
- }
- }
-
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Bridge\Monolog')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Bridge\Monolog')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Bridge/Monolog/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Monolog Bridge Test Suite">
View
4 src/Symfony/Bridge/Propel1/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
15 src/Symfony/Bridge/Propel1/README.md
@@ -8,15 +8,6 @@ Resources
You can run the unit tests with the following command:
- phpunit -c src/Symfony/Bridge/Propel/
-
-If you also want to run the unit tests that depend on other Symfony
-Components, declare the following environment variables before running
-PHPUnit:
-
- export PROPEL1=../path/to/Propel
- export SYMFONY_HTTP_FOUNDATION=../path/to/HttpFoundation
- export SYMFONY_HTTP_KERNEL=../path/to/HttpKernel
- export SYMFONY_FORM=../path/to/Form
- export SYMFONY_EVENT_DISPATCHER=../path/to/EventDispatcher
- export SYMFONY_OPTIONS_RESOLVER=../path/to/OptionsResolver
+ $ cd path/to/Symfony/Bridge/Propel1/
+ $ composer.phar install --dev
+ $ phpunit
View
36 src/Symfony/Bridge/Propel1/Tests/bootstrap.php
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- foreach (array(
- 'SYMFONY_HTTP_FOUNDATION' => 'HttpFoundation',
- 'SYMFONY_HTTP_KERNEL' => 'HttpKernel',
- 'SYMFONY_FORM' => 'Form',
- 'SYMFONY_EVENT_DISPATCHER' => 'EventDispatcher',
- 'SYMFONY_OPTIONS_RESOLVER' => 'OptionsResolver',
- ) as $env => $name) {
- if (isset($_SERVER[$env]) && 0 === strpos(ltrim($class, '/'), 'Symfony\Component\\'.$name)) {
- if (file_exists($file = $_SERVER[$env].'/'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\\'.$name)).'.php')) {
- require_once $file;
- }
- }
- }
-
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Bridge\Propel1')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Bridge\Propel1')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (isset($_SERVER['PROPEL1']) && is_file($file = $_SERVER['PROPEL1'].'/runtime/lib/Propel.php')) {
- require_once $file;
-}
View
2 src/Symfony/Bridge/Propel1/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Propel1 Bridge Test Suite">
View
2 src/Symfony/Bridge/Twig/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
6 src/Symfony/Bridge/Twig/README.md
@@ -10,6 +10,6 @@ Resources
If you want to run the unit tests, install dev dependencies before
running PHPUnit:
- php composer.phar install --dev
-
- phpunit
+ $ cd path/to/Symfony/Bridge/Twig/
+ $ composer.phar install --dev
+ $ phpunit
View
14 src/Symfony/Bridge/Twig/Tests/bootstrap.php
@@ -1,14 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Bridge/Twig/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Twig Bridge Test Suite">
View
2 src/Symfony/Component/BrowserKit/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/BrowserKit/README.md
@@ -18,9 +18,6 @@ provided by the HttpKernel component.
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/BrowserKit/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/BrowserKit/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\BrowserKit')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\BrowserKit')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/BrowserKit/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony BrowserKit Component Test Suite">
View
2 src/Symfony/Component/ClassLoader/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/ClassLoader/README.md
@@ -64,9 +64,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/ClassLoader/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/ClassLoader/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\ClassLoader')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\ClassLoader')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/ClassLoader/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony ClassLoader Component Test Suite">
View
4 src/Symfony/Component/Config/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
5 src/Symfony/Component/Config/README.md
@@ -11,4 +11,7 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/Config/
+ $ composer.phar install --dev
+ $ phpunit
+
View
18 src/Symfony/Component/Config/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Config')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Config')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/Config/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Config Component Test Suite">
View
4 src/Symfony/Component/Console/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/Console/README.md
@@ -45,7 +45,9 @@ Tests
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/Console/
+ $ composer.phar install --dev
+ $ phpunit
Third Party
-----------
View
18 src/Symfony/Component/Console/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Console')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Console')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/Console/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Console Component Test Suite">
View
4 src/Symfony/Component/CssSelector/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/CssSelector/README.md
@@ -20,4 +20,6 @@ Current code is a port of https://github.com/SimonSapin/cssselect@fd2e70
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/CssSelector/
+ $ composer.phar install --dev
+ $ phpunit
View
18 src/Symfony/Component/CssSelector/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\CssSelector')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\CssSelector')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/CssSelector/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony CssSelector Component Test Suite">
View
2 src/Symfony/Component/DependencyInjection/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/DependencyInjection/README.md
@@ -68,9 +68,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/DependencyInjection/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/DependencyInjection/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\DependencyInjection')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\DependencyInjection')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/DependencyInjection/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony DependencyInjection Component Test Suite">
View
2 src/Symfony/Component/DomCrawler/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/DomCrawler/README.md
@@ -27,9 +27,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/DomCrawler/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/DomCrawler/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\DomCrawler')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\DomCrawler')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/DomCrawler/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony DomCrawler Component Test Suite">
View
2 src/Symfony/Component/EventDispatcher/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/EventDispatcher/README.md
@@ -20,9 +20,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/EventDispatcher/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/EventDispatcher/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\EventDispatcher')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\EventDispatcher')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/EventDispatcher/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony EventDispatcher Component Test Suite">
View
4 src/Symfony/Component/Filesystem/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/Filesystem/README.md
@@ -40,4 +40,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/Filesystem/
+ $ composer.phar install --dev
+ $ phpunit
View
18 src/Symfony/Component/Filesystem/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Filesystem')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Filesystem')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/Filesystem/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Filesystem Component Test Suite">
View
4 src/Symfony/Component/Finder/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
5 src/Symfony/Component/Finder/README.md
@@ -35,4 +35,7 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/Finder/
+ $ composer.phar install --dev
+ $ phpunit
+
View
2 src/Symfony/Component/Finder/Tests/FinderTest.php
@@ -312,7 +312,7 @@ public function testIn($adapter)
$finder = $this->buildFinder($adapter);
$iterator = $finder->files()->name('*.php')->depth('< 1')->in(array(self::$tmpDir, __DIR__))->getIterator();
- $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php', __DIR__.DIRECTORY_SEPARATOR.'bootstrap.php'), $iterator);
+ $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php'), $iterator);
}
/**
View
18 src/Symfony/Component/Finder/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Finder')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Finder')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/Finder/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Finder Component Test Suite">
View
2 src/Symfony/Component/Form/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/Form/README.md
@@ -21,9 +21,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/Form/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/Form/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Form')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Form')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/Form/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Form Component Test Suite">
View
4 src/Symfony/Component/HttpFoundation/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/HttpFoundation/README.md
@@ -43,4 +43,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/HttpFoundation/
+ $ composer.phar install --dev
+ $ phpunit
View
2 src/Symfony/Component/HttpFoundation/Tests/BinaryFileResponseTest.php
@@ -49,7 +49,7 @@ public function testGetContent()
public function testRequests()
{
- $response = BinaryFileResponse::create('src/Symfony/Component/HttpFoundation/Tests/File/Fixtures/test.gif')->setAutoEtag();
+ $response = BinaryFileResponse::create(__DIR__.'/File/Fixtures/test.gif')->setAutoEtag();
// do a request to get the ETag
$request = Request::create('/');
View
22 src/Symfony/Component/HttpFoundation/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (ltrim('SessionHandlerInterface', '/') === $class) {
- require_once __DIR__.'/../Resources/stubs/SessionHandlerInterface.php';
- }
-
- if (0 !== strpos(ltrim($class, '/'), 'Symfony\Component\HttpFoundation')) {
- return;
- }
-
- require_once __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\HttpFoundation')).'.php';
-});
View
2 src/Symfony/Component/HttpFoundation/composer.json
@@ -20,7 +20,7 @@
},
"autoload": {
"psr-0": { "Symfony\\Component\\HttpFoundation\\": "" },
- "classmap": [ "Symfony/Component/HttpFoundation/Resources/stubs" ]
+ "classmap": [ "Symfony/Component/HttpFoundation/Resources/Resources/stubs" ]
@igorw
igorw added a note Nov 10, 2012

This looks wrong (tm). See also fabpot/silex#541.

@fabpot
Symfony member
fabpot added a note Nov 10, 2012

fixed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
},
"target-dir": "Symfony/Component/HttpFoundation",
"minimum-stability": "dev",
View
2 src/Symfony/Component/HttpFoundation/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony HttpFoundation Component Test Suite">
View
2 src/Symfony/Component/HttpKernel/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/HttpKernel/README.md
@@ -84,9 +84,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/HttpKernel/
+ $ composer.phar install --dev
+ $ phpunit
View
2 src/Symfony/Component/HttpKernel/Tests/Fixtures/TestClient.php
@@ -19,7 +19,7 @@ protected function getScript($request)
{
$script = parent::getScript($request);
- $script = preg_replace('/(\->register\(\);)/', "$0\nrequire_once '".__DIR__."/../bootstrap.php';", $script);
+ $script = preg_replace('/(\->register\(\);)/', "$0\nrequire_once '".__DIR__."/../../vendor/autoload.php';", $script);
return $script;
}
View
22 src/Symfony/Component/HttpKernel/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\HttpKernel')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\HttpKernel')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/HttpKernel/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony HttpKernel Component Test Suite">
View
3 src/Symfony/Component/Locale/.gitignore
@@ -3,3 +3,6 @@ Resources/data/4.2/
Resources/data/4.4/
Resources/data/4.6/
Resources/data/4.8/
+vendor/
+composer.lock
+phpunit.xml
View
4 src/Symfony/Component/Locale/README.md
@@ -22,7 +22,9 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/XXX/
+ $ composer.phar install --dev
+ $ phpunit
If your PHP have the ``intl`` extension enabled but the intl extension ICU data
version mismatch the one shipped with the component, you can build the data for
View
2 src/Symfony/Component/Locale/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Locale Component Test Suite">
View
4 src/Symfony/Component/OptionsResolver/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/OptionsResolver/README.md
@@ -102,4 +102,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/OptionsResolver/
+ $ composer.phar install --dev
+ $ phpunit
View
18 src/Symfony/Component/OptionsResolver/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\OptionsResolver')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\OptionsResolver')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/OptionsResolver/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony OptionsResolver Component Test Suite">
View
4 src/Symfony/Component/Process/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/Process/README.md
@@ -42,4 +42,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/XXX/
+ $ composer.phar install --dev
+ $ phpunit
View
18 src/Symfony/Component/Process/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Process')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Process')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/Process/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Process Component Test Suite">
View
2 src/Symfony/Component/Routing/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/Routing/README.md
@@ -29,9 +29,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/Routing/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/Routing/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Routing')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Routing')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/Routing/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Routing Component Test Suite">
View
2 src/Symfony/Component/Security/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/Security/README.md
@@ -18,9 +18,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/Security/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/Security/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Security')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Security')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/Security/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Security Component Test Suite">
View
4 src/Symfony/Component/Serializer/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/Serializer/README.md
@@ -10,4 +10,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/Serializer/
+ $ composer.phar install --dev
+ $ phpunit
View
18 src/Symfony/Component/Serializer/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Serializer')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Serializer')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/Serializer/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Serializer Component Test Suite">
View
4 src/Symfony/Component/Templating/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/Templating/README.md
@@ -13,4 +13,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/Templating/
+ $ composer.phar install --dev
+ $ phpunit
View
18 src/Symfony/Component/Templating/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Templating')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Templating')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/Templating/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Templating Component Test Suite">
View
2 src/Symfony/Component/Translation/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/Translation/README.md
@@ -30,9 +30,6 @@ http://symfony.com/doc/2.0/book/translation.html
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/Translation/
+ $ composer.phar install --dev
+ $ phpunit
View
22 src/Symfony/Component/Translation/Tests/bootstrap.php
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Translation')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Translation')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
View
2 src/Symfony/Component/Translation/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Translation Component Test Suite">
View
2 src/Symfony/Component/Validator/.gitignore
@@ -1,2 +1,4 @@
vendor/
composer.lock
+phpunit.xml
+
View
9 src/Symfony/Component/Validator/README.md
@@ -115,9 +115,6 @@ http://jcp.org/en/jsr/detail?id=303
You can run the unit tests with the following command:
- phpunit
-
-If you also want to run the unit tests that depend on other Symfony
-Components, install dev dependencies before running PHPUnit:
-
- php composer.phar install --dev
+ $ cd path/to/Symfony/Component/Validator/
+ $ composer.phar install --dev
+ $ phpunit
View
34 src/Symfony/Component/Validator/Tests/bootstrap.php
@@ -1,34 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Validator')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Validator')).'.php')) {
- require_once $file;
- }
- }
-});
-
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
- require_once $loader;
-}
-
-if (class_exists($annotationRegistry = 'Doctrine\Common\Annotations\AnnotationRegistry')) {
- $annotationRegistry::registerLoader(function($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Validator')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Validator')).'.php')) {
- require_once $file;
- }
- }
-
- return class_exists($class, false);
- });
-}
View
2 src/Symfony/Component/Validator/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Validator Component Test Suite">
View
4 src/Symfony/Component/Yaml/.gitignore
@@ -0,0 +1,4 @@
+vendor/
+composer.lock
+phpunit.xml
+
View
4 src/Symfony/Component/Yaml/README.md
@@ -14,4 +14,6 @@ Resources
You can run the unit tests with the following command:
- phpunit
+ $ cd path/to/Symfony/Component/Yaml/
+ $ composer.phar install --dev
+ $ phpunit
View
18 src/Symfony/Component/Yaml/Tests/bootstrap.php
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-spl_autoload_register(function ($class) {
- if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\Yaml')) {
- if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\Yaml')).'.php')) {
- require_once $file;
- }
- }
-});
View
2 src/Symfony/Component/Yaml/phpunit.xml.dist
@@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
- bootstrap="Tests/bootstrap.php"
+ bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Symfony Yaml Component Test Suite">

0 comments on commit b27b749

Please sign in to comment.
Something went wrong with that request. Please try again.