projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ea50a0
)
Add more tests.
author
Jan Schneider
<jan@horde.org>
Sun, 2 Jan 2011 22:59:28 +0000
(23:59 +0100)
committer
Jan Schneider
<jan@horde.org>
Sun, 2 Jan 2011 22:59:28 +0000
(23:59 +0100)
framework/Support/test/Horde/Support/StubTest.php
patch
|
blob
|
history
diff --git
a/framework/Support/test/Horde/Support/StubTest.php
b/framework/Support/test/Horde/Support/StubTest.php
index
0bdc72a
..
a22cb5d
100644
(file)
--- 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());
+ }
}