1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/Doctrine/Tests/Common/ClassLoaderTest.php

22 lines
704 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\Common;
use Doctrine\Common\ClassLoader;
2009-06-15 22:25:47 +04:00
require_once __DIR__ . '/../TestInit.php';
class ClassLoaderTest extends \Doctrine\Tests\DoctrineTestCase
{
public function testClassLoader()
{
$classLoader = new ClassLoader('ClassLoaderTest');
$classLoader->setIncludePath(__DIR__);
$classLoader->setFileExtension('.class.php');
2009-07-15 02:36:09 +04:00
$classLoader->setNamespaceSeparator('_');
$this->assertEquals($classLoader->loadClass('ClassLoaderTest_ClassA'), true);
$this->assertEquals($classLoader->loadClass('ClassLoaderTest_ClassB'), true);
2009-07-15 02:36:09 +04:00
$this->assertEquals($classLoader->loadClass('ClassLoaderTest_ClassC'), true);
}
}