AutoloaderTest.php 617B

12345678910111213141516171819202122
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. class Twig_Tests_AutoloaderTest extends PHPUnit_Framework_TestCase
  11. {
  12. public function testAutoload()
  13. {
  14. $this->assertFalse(class_exists('FooBarFoo'), '->autoload() does not try to load classes that does not begin with Twig');
  15. $autoloader = new Twig_Autoloader();
  16. $this->assertNull($autoloader->autoload('Foo'), '->autoload() returns false if it is not able to load a class');
  17. }
  18. }