#51 (updated tests, refactored a little).

This commit is contained in:
Roman Syroeshko 2015-02-06 22:48:45 +04:00
parent 2a5c66784b
commit 8bb4573534
1 changed files with 2 additions and 4 deletions

View File

@ -48,15 +48,13 @@ class AutoloaderTest extends \PHPUnit_Framework_TestCase
$this->assertCount(
$declaredCount,
get_declared_classes(),
'PhpOffice\\PhpWord\\Autoloader::autoload() is trying to load '
. 'classes outside of the PhpOffice\\PhpWord namespace'
'PhpOffice\\PhpWord\\Autoloader::autoload() is trying to load classes outside of the PhpOffice\\PhpWord namespace'
);
// TODO change this class to the main PhpWord class when it is namespaced
Autoloader::autoload('PhpOffice\\PhpWord\\Exception\\InvalidStyleException');
$this->assertTrue(
in_array('PhpOffice\\PhpWord\\Exception\\InvalidStyleException', get_declared_classes()),
'PhpOffice\\PhpWord\\Autoloader::autoload() failed to autoload the '
. 'PhpOffice\\PhpWord\\Exception\\InvalidStyleException class'
'PhpOffice\\PhpWord\\Autoloader::autoload() failed to autoload the PhpOffice\\PhpWord\\Exception\\InvalidStyleException class'
);
}
}