Skip to content

Commit

Permalink
Adds error handler test, fixes bad middleware test names
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobemerick committed Aug 25, 2016
1 parent e4f0d46 commit 9d38b5d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/unit/ErrorHandler/JsonResponseTest.php
@@ -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');
}
}
Expand Up @@ -17,4 +17,9 @@ public function testInvokeAddsJsonHeader()
{
$this->markTestIncomplete('todo');
}

public function testInvokeReturnsResponse()
{
$this->markTestIncomplete('todo');
}
}
Expand Up @@ -32,4 +32,9 @@ public function testInvokePassesParsedBodyToRequest()
{
$this->markTestIncomplete('todo');
}

public function testInvokeReturnsCallback()
{
$this->markTestIncomplete('todo');
}
}

0 comments on commit 9d38b5d

Please sign in to comment.