Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds error handler test, fixes bad middleware test names
- Loading branch information
1 parent
e4f0d46
commit 9d38b5d
Showing
3 changed files
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Jacobemerick\CommentService\ErrorHandler; | ||
|
||
use PHPUnit_Framework_TestCase; | ||
|
||
class JsonResponseTest extends PHPUnit_Framework_TestCase | ||
{ | ||
|
||
public function testIsInstanceOfJsonResponse() | ||
{ | ||
$errorHandler = new JsonResponse(); | ||
$this->assertInstanceOf(JsonResponse::class, $errorHandler); | ||
} | ||
|
||
public function testInvokeWritesEncodedErrorToResponse() | ||
{ | ||
$this->markTestIncomplete('todo'); | ||
} | ||
|
||
public function testInvokeReturnsResponse() | ||
{ | ||
$this->markTestIncomplete('todo'); | ||
} | ||
} |
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
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