diff --git a/api/tests/Traits/AssertionsTrait.php b/api/tests/Traits/AssertionsTrait.php index 0f473d11..4d499232 100644 --- a/api/tests/Traits/AssertionsTrait.php +++ b/api/tests/Traits/AssertionsTrait.php @@ -7,21 +7,19 @@ * * For the full copyright and license information, please view the LICENSE file that was distributed with this source code. */ -use Illuminate\Support\Debug\Dumper; use Laravel\Lumen\Testing\AssertionsTrait as BaseAssertionsTrait; use Symfony\Component\VarDumper\Cloner\VarCloner; use Symfony\Component\VarDumper\Dumper\CliDumper; - /** * Additional assertions not offered by Lumen's TestCase or PHPUnit. */ trait AssertionsTrait { - use BaseAssertionsTrait { BaseAssertionsTrait::assertResponseStatus as baseAssertResponseStatus; } + /** * Assert the response is a JSON array. * diff --git a/api/tests/Traits/AssertionsTraitTest.php b/api/tests/Traits/AssertionsTraitTest.php index 1a81f780..803e2926 100644 --- a/api/tests/Traits/AssertionsTraitTest.php +++ b/api/tests/Traits/AssertionsTraitTest.php @@ -13,7 +13,6 @@ */ class AssertionsTraitTest extends TestCase { - /** * Test that date formats are valid. */ @@ -46,7 +45,7 @@ public function testValidISO8601DateInvalidDateTimeString() } /** - * Test that the response status assertion outputs the dumped json response on failure + * Test that the response status assertion outputs the dumped json response on failure. */ public function testFailingStatusCodeAssertion() { @@ -55,12 +54,11 @@ public function testFailingStatusCodeAssertion() ob_start(); try { $this->assertResponseStatus(200); - } catch (\Exception $e){ + } catch (\Exception $e) { $this->assertInstanceOf('PHPUnit_Framework_AssertionFailedError', $e); } $output = ob_get_clean(); - $this->assertContains("NotFoundHttpException", $output); + $this->assertContains('NotFoundHttpException', $output); } - }