Skip to content

Commit

Permalink
Updated new exception expectation to use expectException()
Browse files Browse the repository at this point in the history
New expectation introduced in zendframework#73 to use modern exception expectation
method.
  • Loading branch information
weierophinney committed Jun 19, 2017
1 parent 39d491a commit f78e9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Service/SessionManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function testFactoryWillUseRequestedNameAsSessionManagerIfItImplementsMan

public function testFactoryWillRaiseServiceNotCreatedExceptionIfRequestedNameIsNotAManagerInterfaceSubclass()
{
$this->setExpectedException(ServiceNotCreatedException::class);
$this->expectException(ServiceNotCreatedException::class);
$manager = $this->services->get(TestSaveHandler::class);
}
}

0 comments on commit f78e9b7

Please sign in to comment.