Last active
December 8, 2015 09:44
-
-
Save anaxamaxan/0c9e20d37bde59842e58 to your computer and use it in GitHub Desktop.
Quick test of a trait method
This file contains hidden or 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
public function testIsForbiddenResponse() | |
{ | |
$obj = new class(){ | |
use \App\Http\Controllers\Traits\JsonMessagesTrait; | |
}; | |
$this->assertEquals(403, $obj->isForbiddenResponse()->getStatusCode()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment