CS fixes.
This commit is contained in:
@@ -22,7 +22,7 @@ class Mustache_Autoloader
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
static private $instances;
|
||||
private static $instances;
|
||||
|
||||
/**
|
||||
* Autoloader constructor.
|
||||
|
||||
@@ -33,21 +33,19 @@ class Mustache_Test_AutoloaderTest extends PHPUnit_Framework_TestCase
|
||||
$loader->autoload('\Mustache_Bar');
|
||||
$this->assertTrue(class_exists('Mustache_Bar'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test that the autoloader won't register multiple times.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testRegisterMultiple()
|
||||
{
|
||||
$numLoaders = count(spl_autoload_functions());
|
||||
|
||||
|
||||
Mustache_Autoloader::register();
|
||||
Mustache_Autoloader::register();
|
||||
|
||||
|
||||
$expectedNumLoaders = $numLoaders + 1;
|
||||
|
||||
|
||||
$this->assertCount($expectedNumLoaders, spl_autoload_functions());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user