#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

View File

@ -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'
); );
} }
} }