ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
AutoloaderTest.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of Twig.
5
*
6
* (c) Fabien Potencier
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
class
Twig_Tests_AutoloaderTest
extends
\PHPUnit\Framework\TestCase
13
{
17
public
function
testAutoload
()
18
{
19
$this->assertFalse(class_exists(
'FooBarFoo'
),
'->autoload() does not try to load classes that does not begin with Twig'
);
20
21
$autoloader =
new
Twig_Autoloader
();
22
$this->assertNull($autoloader->autoload(
'Foo'
),
'->autoload() returns false if it is not able to load a class'
);
23
}
24
}
Twig_Tests_AutoloaderTest
Definition:
AutoloaderTest.php:12
Twig_Tests_AutoloaderTest\testAutoload
testAutoload()
legacy
Definition:
AutoloaderTest.php:17
Twig_Autoloader
Autoloads Twig classes.
Definition:
Autoloader.php:21
libs
composer
vendor
twig
twig
test
Twig
Tests
AutoloaderTest.php
Generated on Tue Feb 25 2025 19:01:15 for ILIAS by
1.8.13 (using
Doxyfile
)