kodedphp /
http
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace Tests\Koded\Tests\Http; |
||||
| 4 | |||||
| 5 | use Koded\Http\StatusCode; |
||||
| 6 | use PHPUnit\Framework\TestCase; |
||||
| 7 | |||||
| 8 | class HttpStatusTest extends TestCase |
||||
| 9 | { |
||||
| 10 | /** |
||||
| 11 | * @test |
||||
| 12 | */ |
||||
| 13 | public function it_should_return_status_string_without_code() |
||||
| 14 | { |
||||
| 15 | $this->assertSame('Multiple Choices', StatusCode::MULTIPLE_CHOICES()); |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 16 | } |
||||
| 17 | |||||
| 18 | /** |
||||
| 19 | * @test |
||||
| 20 | */ |
||||
| 21 | public function it_should_return_status_string_with_code() |
||||
| 22 | { |
||||
| 23 | $this->assertSame('401 Unauthorized', StatusCode::UNAUTHORIZED(true)); |
||||
|
0 ignored issues
–
show
The method
UNAUTHORIZED() does not exist on Koded\Http\StatusCode. Since you implemented __callStatic, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 24 | } |
||||
| 25 | } |
||||
| 26 |