Permalink
Browse files

fixed unit tests

  • Loading branch information...
1 parent a04dde5 commit 5828147fbcd233b2d64b3e766ad8252577401694 @fabpot fabpot committed Jul 3, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 Tests/ClassCollectionLoaderTest.php
@@ -14,17 +14,17 @@
use Symfony\Component\ClassLoader\ClassCollectionLoader;
use Symfony\Component\ClassLoader\UniversalClassLoader;
+require_once __DIR__.'/Fixtures/ClassesWithParents/CInterface.php';
+require_once __DIR__.'/Fixtures/ClassesWithParents/B.php';
+require_once __DIR__.'/Fixtures/ClassesWithParents/A.php';
+
class ClassCollectionLoaderTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider getDifferentOrders
*/
public function testClassReordering(array $classes)
{
- $loader = new UniversalClassLoader();
- $loader->registerNamespace('ClassesWithParents', __DIR__.'/Fixtures');
- $loader->register();
-
$expected = <<<EOF
<?php
@@ -58,7 +58,7 @@ class A extends B {}
$this->assertEquals($expected, $cachedContent);
}
-
+
public function getDifferentOrders()
{
return array(

0 comments on commit 5828147

Please sign in to comment.