#51 (updated tests, refactored a little).
This commit is contained in:
parent
2a5c66784b
commit
8bb4573534
@ -48,15 +48,13 @@ class AutoloaderTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertCount(
|
$this->assertCount(
|
||||||
$declaredCount,
|
$declaredCount,
|
||||||
get_declared_classes(),
|
get_declared_classes(),
|
||||||
'PhpOffice\\PhpWord\\Autoloader::autoload() is trying to load '
|
'PhpOffice\\PhpWord\\Autoloader::autoload() is trying to load classes outside of the PhpOffice\\PhpWord namespace'
|
||||||
. 'classes outside of the PhpOffice\\PhpWord namespace'
|
|
||||||
);
|
);
|
||||||
// TODO change this class to the main PhpWord class when it is namespaced
|
// TODO change this class to the main PhpWord class when it is namespaced
|
||||||
Autoloader::autoload('PhpOffice\\PhpWord\\Exception\\InvalidStyleException');
|
Autoloader::autoload('PhpOffice\\PhpWord\\Exception\\InvalidStyleException');
|
||||||
$this->assertTrue(
|
$this->assertTrue(
|
||||||
in_array('PhpOffice\\PhpWord\\Exception\\InvalidStyleException', get_declared_classes()),
|
in_array('PhpOffice\\PhpWord\\Exception\\InvalidStyleException', get_declared_classes()),
|
||||||
'PhpOffice\\PhpWord\\Autoloader::autoload() failed to autoload the '
|
'PhpOffice\\PhpWord\\Autoloader::autoload() failed to autoload the PhpOffice\\PhpWord\\Exception\\InvalidStyleException class'
|
||||||
. 'PhpOffice\\PhpWord\\Exception\\InvalidStyleException class'
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user