From: Jan Schneider Date: Sun, 2 Jan 2011 22:59:28 +0000 (+0100) Subject: Add more tests. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=147cacac3e0c952f1ac3a68d46d2a76c1f999410;p=horde.git Add more tests. --- diff --git a/framework/Support/test/Horde/Support/StubTest.php b/framework/Support/test/Horde/Support/StubTest.php index 0bdc72afa..a22cb5dee 100644 --- a/framework/Support/test/Horde/Support/StubTest.php +++ b/framework/Support/test/Horde/Support/StubTest.php @@ -30,6 +30,7 @@ class Horde_Support_StubTest extends PHPUnit_Framework_TestCase { $stub = new Horde_Support_Stub; $this->assertTrue(is_callable(array($stub, uniqid()))); + $this->assertNull($stub->{uniqid()}()); } public function testAnyStaticMethodIsCallable() @@ -38,6 +39,12 @@ class Horde_Support_StubTest extends PHPUnit_Framework_TestCase $this->markTestSkipped(); } $this->assertTrue(is_callable(array('Horde_Support_Stub', uniqid()))); + $unique = uniqid(); + $this->assertNull(Horde_Support_Stub::$unique()); } + public function testToString() + { + $this->assertEquals('', (string)new Horde_Support_Stub()); + } }