Skip to content

Commit

Permalink
♻️ move exception to import
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 16, 2020
1 parent 4ef67e7 commit b814dfb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/MetApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace acidjazz\metapi\Tests;

use Illuminate\Http\Exceptions\HttpResponseException;
use Illuminate\Http\Request;

class MetApiTest extends BaseTest
Expand Down Expand Up @@ -74,17 +75,17 @@ public function testAbort()
{
try {
$this->ma->abort();
} catch (\Illuminate\Http\Exceptions\HttpResponseException $e) {
$this->assertInstanceOf(\Illuminate\Http\Exceptions\HttpResponseException::class, $e);
} catch (HttpResponseException $e) {
$this->assertInstanceOf(HttpResponseException::class, $e);
}
}

public function testSuccess()
{
try {
$this->ma->success();
} catch (\Illuminate\Http\Exceptions\HttpResponseException $e) {
$this->assertInstanceOf(\Illuminate\Http\Exceptions\HttpResponseException::class, $e);
} catch (HttpResponseException $e) {
$this->assertInstanceOf(HttpResponseException::class, $e);
}
}
}

0 comments on commit b814dfb

Please sign in to comment.