From 147cacac3e0c952f1ac3a68d46d2a76c1f999410 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sun, 2 Jan 2011 23:59:28 +0100 Subject: [PATCH] Add more tests. --- framework/Support/test/Horde/Support/StubTest.php | 7 +++++++ 1 file changed, 7 insertions(+) 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()); + } } -- 2.11.0