diff options
author | David <ottodavid@gmx.net> | 2015-08-10 06:42:01 +0200 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2015-08-10 17:22:33 +0200 |
commit | 2bf1a517f3edc1bd43b8e3340f0f6fd31b1ba94a (patch) | |
tree | 285d7182be15299d8c0cdac1bd8aa1e397fa69d4 /tests/unit/TComponentTest.php | |
parent | 92ee7558c6b6dd2461b645cb1f19a81ef8c50db5 (diff) |
fix unit tests
Diffstat (limited to 'tests/unit/TComponentTest.php')
-rw-r--r-- | tests/unit/TComponentTest.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/tests/unit/TComponentTest.php b/tests/unit/TComponentTest.php index 9a2299da..66b90684 100644 --- a/tests/unit/TComponentTest.php +++ b/tests/unit/TComponentTest.php @@ -1,8 +1,16 @@ <?php -Prado::using('System.Util.*'); -Prado::using('System.Collections.TPriorityList'); -Prado::using('System.Collections.TPriorityMap'); +use Prado\Collections\TPriorityList; +use Prado\Exceptions\TApplicationException; +use Prado\Exceptions\TInvalidDataTypeException; +use Prado\Exceptions\TInvalidOperationException; +use Prado\TComponent; +use Prado\TEventResults; +use Prado\Util\IDynamicMethods; +use Prado\Util\IInstanceCheck; +use Prado\Util\TBehavior; +use Prado\Util\TClassBehavior; + class NewComponent extends TComponent { private $_object = null; @@ -624,9 +632,9 @@ class TComponentTest extends PHPUnit_Framework_TestCase { public function testGetClassHierarchy() { $component = new DynamicCatchingComponent; - $this->assertEquals(array('TComponent', 'NewComponent', 'NewComponentNoListen', 'DynamicCatchingComponent'), $component->getClassHierarchy()); - $this->assertEquals(array('TComponent', 'NewComponent', 'NewComponentNoListen', 'DynamicCatchingComponent'), $component->getClassHierarchy(false)); - $this->assertEquals(array('tcomponent', 'newcomponent', 'newcomponentnolisten', 'dynamiccatchingcomponent'), $component->getClassHierarchy(true)); + $this->assertEquals(array('Prado\TComponent', 'NewComponent', 'NewComponentNoListen', 'DynamicCatchingComponent'), $component->getClassHierarchy()); + $this->assertEquals(array('Prado\TComponent', 'NewComponent', 'NewComponentNoListen', 'DynamicCatchingComponent'), $component->getClassHierarchy(false)); + $this->assertEquals(array('prado\tcomponent', 'newcomponent', 'newcomponentnolisten', 'dynamiccatchingcomponent'), $component->getClassHierarchy(true)); } |