Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jul 3, 2012
1 parent a04dde5 commit 5828147
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/ClassCollectionLoaderTest.php
Expand Up @@ -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
Expand Down Expand Up @@ -58,7 +58,7 @@ class A extends B {}

$this->assertEquals($expected, $cachedContent);
}

public function getDifferentOrders()
{
return array(
Expand Down

0 comments on commit 5828147

Please sign in to comment.