Skip to content

Commit

Permalink
BadMethodCallException tests messages update
Browse files Browse the repository at this point in the history
  • Loading branch information
gregoriohc committed Feb 20, 2018
1 parent 6a76cd1 commit c29871e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/Http/HttpRedirectResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function testMagicCall()

/**
* @expectedException \BadMethodCallException
* @expectedExceptionMessage Method [doesNotExist] does not exist on Redirect.
* @expectedExceptionMessage Method Illuminate\Http\RedirectResponse::doesNotExist does not exist.
*/
public function testMagicCallException()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Http/HttpResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function testMagicCall()

/**
* @expectedException \BadMethodCallException
* @expectedExceptionMessage Method [doesNotExist] does not exist on Redirect.
* @expectedExceptionMessage Method Illuminate\Http\RedirectResponse::doesNotExist does not exist.
*/
public function testMagicCallException()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Routing/RouteRegistrarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function testCanRegisterGroupWithDomainAndNamePrefix()

/**
* @expectedException \BadMethodCallException
* @expectedExceptionMessage Method [missing] does not exist.
* @expectedExceptionMessage Method Illuminate\Routing\RouteRegistrar::missing does not exist.
*/
public function testRegisteringNonApprovedAttributesThrows()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/SupportCarbonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function testCarbonIsMacroableWhenCalledStatically()

/**
* @expectedException \BadMethodCallException
* @expectedExceptionMessage Method nonExistingStaticMacro does not exist.
* @expectedExceptionMessage Method Illuminate\Support\Carbon::nonExistingStaticMacro does not exist.
*/
public function testCarbonRaisesExceptionWhenStaticMacroIsNotFound()
{
Expand All @@ -67,7 +67,7 @@ public function testCarbonRaisesExceptionWhenStaticMacroIsNotFound()

/**
* @expectedException \BadMethodCallException
* @expectedExceptionMessage Method nonExistingMacro does not exist.
* @expectedExceptionMessage Method Illuminate\Support\Carbon::nonExistingMacro does not exist.
*/
public function testCarbonRaisesExceptionWhenMacroIsNotFound()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/View/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function testViewMagicMethods()

/**
* @expectedException \BadMethodCallException
* @expectedExceptionMessage Method [badMethodCall] does not exist on view.
* @expectedExceptionMessage Method Illuminate\View\View::badMethodCall does not exist.
*/
public function testViewBadMethod()
{
Expand Down

0 comments on commit c29871e

Please sign in to comment.