diff --git a/src/Invoker.php b/src/Invoker.php index 0a530db..0c3d97d 100644 --- a/src/Invoker.php +++ b/src/Invoker.php @@ -135,7 +135,7 @@ private function resolveCallableFromContainer($callable) return $this->container->get($callable); } else { throw new NotCallableException(sprintf( - '%s is neither a callable or a valid container entry', + '%s is neither a callable nor a valid container entry', $callable )); } diff --git a/tests/InvokerTest.php b/tests/InvokerTest.php index 67e5212..3915df4 100644 --- a/tests/InvokerTest.php +++ b/tests/InvokerTest.php @@ -284,7 +284,7 @@ public function should_throw_if_calling_non_callable_without_container() /** * @test * @expectedException \Invoker\Exception\NotCallableException - * @expectedExceptionMessage foo is neither a callable or a valid container entry + * @expectedExceptionMessage foo is neither a callable nor a valid container entry */ public function should_throw_if_calling_non_callable_with_container() {