From 3df846df7ffd17cc13a4ba72305c2b05032b6fc1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 16 Aug 2006 03:26:50 +0000 Subject: [PATCH] Fix the test when we're checking size by creating a new register and using that --- UnitTest/RegisterTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UnitTest/RegisterTest.php b/UnitTest/RegisterTest.php index c82878e..21c38b8 100644 --- a/UnitTest/RegisterTest.php +++ b/UnitTest/RegisterTest.php @@ -62,8 +62,10 @@ class RegisterTest extends UnitTestCase public function testGetAll() { - $this->assertIsA($this->fixture->getAll(), 'array'); - $this->assertEqual(sizeof($this->fixture->getAll()), 1); + $new = BSLoader::NewRegister(); + $new->register('test', 1); + $this->assertIsA($new->getAll(), 'array'); + $this->assertEqual(sizeof($new->getAll()), 1); } public function testOverWriteRegister() -- 2.43.5