Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

made usage of Composer autoloader for subtree-split unit tests

  • Loading branch information...
commit 469dc34f0135dd718fd8efe25e73d79610efbb80 1 parent f8c1534
Fabien Potencier authored
2  .gitignore
... ...
@@ -1,2 +1,4 @@
1 1
 vendor/
2 2
 composer.lock
  3
+phpunit.xml
  4
+
9  README.md
Source Rendered
@@ -18,9 +18,6 @@ provided by the HttpKernel component.
18 18
 
19 19
 You can run the unit tests with the following command:
20 20
 
21  
-    phpunit
22  
-
23  
-If you also want to run the unit tests that depend on other Symfony
24  
-Components, install dev dependencies before running PHPUnit:
25  
-
26  
-    php composer.phar install --dev
  21
+    $ cd path/to/Symfony/Component/BrowserKit/
  22
+    $ composer.phar install --dev
  23
+    $ phpunit
22  Tests/bootstrap.php
... ...
@@ -1,22 +0,0 @@
1  
-<?php
2  
-
3  
-/*
4  
- * This file is part of the Symfony package.
5  
- *
6  
- * (c) Fabien Potencier <fabien@symfony.com>
7  
- *
8  
- * For the full copyright and license information, please view the LICENSE
9  
- * file that was distributed with this source code.
10  
- */
11  
-
12  
-spl_autoload_register(function ($class) {
13  
-    if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\BrowserKit')) {
14  
-        if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\BrowserKit')).'.php')) {
15  
-            require_once $file;
16  
-        }
17  
-    }
18  
-});
19  
-
20  
-if (file_exists($loader = __DIR__.'/../vendor/autoload.php')) {
21  
-    require_once $loader;
22  
-}
2  phpunit.xml.dist
@@ -9,7 +9,7 @@
9 9
          processIsolation="false"
10 10
          stopOnFailure="false"
11 11
          syntaxCheck="false"
12  
-         bootstrap="Tests/bootstrap.php"
  12
+         bootstrap="vendor/autoload.php"
13 13
 >
14 14
     <testsuites>
15 15
         <testsuite name="Symfony BrowserKit Component Test Suite">

0 notes on commit 469dc34

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