cvs: pear /Auth_PrefManager2/tests CreationTests.php /Auth_PrefManager2/tests/support MockContainer.php
| From: | Jon Wood | Date: | Wed, 07 Jul 2004 16:26:03 +0000 |
| Subject: | cvs: pear /Auth_PrefManager2/tests CreationTests.php /Auth_PrefManager2/tests/support MockContainer.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21601@lists.php.net to get a copy of this message | ||
jellybob Wed Jul 7 12:26:03 2004 EDT
Removed files:
/pear/Auth_PrefManager2/tests/support MockContainer.php
Modified files:
/pear/Auth_PrefManager2/tests CreationTests.php
Log:
Changed from using a mock container to the new Array container.
http://cvs.php.net/diff.php/pear/Auth_PrefManager2/tests/CreationTests.php?r1=1.1&r2=1.2&ty=u
Index: pear/Auth_PrefManager2/tests/CreationTests.php
diff -u pear/Auth_PrefManager2/tests/CreationTests.php:1.1
pear/Auth_PrefManager2/tests/CreationTests.php:1.2
--- pear/Auth_PrefManager2/tests/CreationTests.php:1.1 Tue Jun 29 12:56:07 2004
+++ pear/Auth_PrefManager2/tests/CreationTests.php Wed Jul 7 12:26:03 2004
@@ -15,13 +15,12 @@
// | Paul M. Jones <pmjones@ciaweb.net> |
// +----------------------------------------------------------------------+
//
-// $Id: CreationTests.php,v 1.1 2004/06/29 16:56:07 jellybob Exp $
+// $Id: CreationTests.php,v 1.2 2004/07/07 16:26:03 jellybob Exp $
/**
* Require Auth_PrefManager2 for testing.
*/
require_once('Auth/PrefManager2.php');
-require_once('support/MockContainer.php');
/**
* Test cases to ensure that the factory and singleton methods work.
@@ -48,12 +47,11 @@
*
* @access public
* @return void
- * @todo Switch to using a full container once one is done.
*/
function testFactory()
{
- $object =& Auth_PrefManager2::factory("Mock");
- $this->assertIsA($object, "Auth_PrefManager2_Mock");
+ $object =& Auth_PrefManager2::factory("Array");
+ $this->assertIsA($object, "Auth_PrefManager2_Container_Array");
}
/**
@@ -65,8 +63,8 @@
*/
function testSingleton()
{
- $object =& Auth_PrefManager2::singleton("Mock");
- $reference =& Auth_PrefManager2::singleton("Mock");
+ $object =& Auth_PrefManager2::singleton("Array");
+ $reference =& Auth_PrefManager2::singleton("Array");
$this->assertReference($object, $reference);
}