From 258288a05359d7ccd4586077c7cad45abb46593a Mon Sep 17 00:00:00 2001 From: jdreesen Date: Sun, 13 Sep 2015 16:26:40 +0200 Subject: [PATCH] Fix typo in exception message --- src/Invoker.php | 2 +- tests/InvokerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {