This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8aea829
commit 0f542de
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1122,8 +1122,10 @@ public function testExceptionIsRaisedInCaseOfInvalidRouteMethodsConfiguration() | |
->get('config') | ||
->willReturn($config); | ||
|
||
$this->setExpectedException('Zend\Expressive\Container\Exception\InvalidArgumentException'); | ||
|
||
$this->setExpectedException( | ||
'Zend\Expressive\Container\Exception\InvalidArgumentException', | ||
'route must be in form of an array; received "string' | ||
); | ||
$this->factory->__invoke($this->container->reveal()); | ||
} | ||
|
||
|
@@ -1177,8 +1179,10 @@ public function testExceptionIsRaisedInCaseOfInvalidRouteOptionsConfiguration() | |
->get('config') | ||
->willReturn($config); | ||
|
||
$this->setExpectedException('Zend\Expressive\Container\Exception\InvalidArgumentException'); | ||
|
||
$this->setExpectedException( | ||
'Zend\Expressive\Container\Exception\InvalidArgumentException', | ||
'options must be an array; received "string"' | ||
); | ||
$this->factory->__invoke($this->container->reveal()); | ||
} | ||
|
||
|
@@ -1231,8 +1235,10 @@ public function testExceptionIsRaisedInCaseOfInvalidPreRoutingMiddlewarePipeline | |
->get('config') | ||
->willReturn($config); | ||
|
||
$this->setExpectedException('Zend\Expressive\Container\Exception\InvalidArgumentException'); | ||
|
||
$this->setExpectedException( | ||
'Zend\Expressive\Container\Exception\InvalidArgumentException', | ||
'middleware collection must be an array; received "string"' | ||
); | ||
$this->factory->__invoke($this->container->reveal()); | ||
} | ||
|
||
|
@@ -1285,8 +1291,10 @@ public function testExceptionIsRaisedInCaseOfInvalidPostRoutingMiddlewarePipelin | |
->get('config') | ||
->willReturn($config); | ||
|
||
$this->setExpectedException('Zend\Expressive\Container\Exception\InvalidArgumentException'); | ||
|
||
$this->setExpectedException( | ||
'Zend\Expressive\Container\Exception\InvalidArgumentException', | ||
'middleware collection must be an array; received "string"' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Maks3w
Member
|
||
); | ||
$this->factory->__invoke($this->container->reveal()); | ||
} | ||
} |
Observe this is the same string as the used on testExceptionIsRaisedInCaseOfInvalidPreRoutingMiddlewarePipeline. How are you sure the exception is raised by post routing and not a false negative from pre routing?