From: Gunnar Wrobel
Date: Thu, 11 Feb 2010 13:57:52 +0000 (+0100)
Subject: Complete coverage.
X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ef68844bad0bdb5a64ee647e06f9dc22c30a8cdd;p=horde.git
Complete coverage.
---
diff --git a/framework/Injector/test/Horde/Injector/InjectorTest.php b/framework/Injector/test/Horde/Injector/InjectorTest.php
index 26e1fda79..fa31188b3 100644
--- a/framework/Injector/test/Horde/Injector/InjectorTest.php
+++ b/framework/Injector/test/Horde/Injector/InjectorTest.php
@@ -51,6 +51,15 @@ class Horde_Injector_InjectorTest extends PHPUnit_Framework_TestCase
$injector->bindMock();
}
+ /**
+ * @expectedException BadMethodCallException
+ */
+ public function testShouldThrowExceptionIfMethodNameIsInvalid()
+ {
+ $injector = new Horde_Injector($this->_getTopLevelNeverCalledMock());
+ $injector->invalid();
+ }
+
public function testShouldReturnItselfWhenInjectorRequested()
{
$injector = new Horde_Injector($this->_getTopLevelNeverCalledMock());
diff --git a/framework/Injector/test/Horde/Injector/phpunit.xml b/framework/Injector/test/Horde/Injector/phpunit.xml
new file mode 100644
index 000000000..502d3c9b8
--- /dev/null
+++ b/framework/Injector/test/Horde/Injector/phpunit.xml
@@ -0,0 +1,8 @@
+
+