for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Vectorface\SnappyRouterTests\Exception;
use \PHPUnit_Framework_TestCase;
use Vectorface\SnappyRouter\Exception\InternalErrorException;
/**
* Tests the InternalErrorException class.
* @copyright Copyright (c) 2014, VectorFace, Inc.
* @author Dan Bruce <[email protected]>
*/
class InternalErrorExceptionTest extends \PHPUnit_Framework_TestCase
{
* An overview of how to use the exception.
* @test
public function synopsis()
$message = 'hello world';
$exception = new InternalErrorException($message);
$this->assertEquals($message, $exception->getMessage());
$this->assertEquals(500, $exception->getAssociatedStatusCode());
}