8000 Use assertFalse and assertTrue · laravel/lumen-framework@25667fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 25667fc

Browse files
committed
Use assertFalse and assertTrue
1 parent 84f04c1 commit 25667fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/FullApplicationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public function testMiddlewareReceiveResponsesEvenWhenStringReturned()
356356
$response = $app->handle(Request::create('/', 'GET'));
357357
$this->assertEquals(200, $response->getStatusCode());
358358
$this->assertEquals('Hello World', $response->getContent());
359-
$this->assertEquals(true, $_SERVER['__middleware.response']);
359+
$this->assertTrue($_SERVER['__middleware.response']);
360360
}
361361

362362
public function testBasicControllerDispatching()
@@ -460,7 +460,7 @@ public function testRunningUnitTestsDetection()
460460
{
461461
$app = new Application;
462462

463-
$this->assertEquals(false, $app->runningUnitTests());
463+
$this->assertFalse($app->runningUnitTests());
464464
}
465465

466466
public function testValidationHelpers()

tests/Http/ResponseFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testDownloadDefaultResponse()
3838
$response = $responseFactory->download($temp);
3939

4040
$this->assertInstanceOf('\Symfony\Component\HttpFoundation\Response', $response);
41-
$this->assertEquals(false, $response->getContent());
41+
$this->assertFalse($response->getContent());
4242
$this->assertEquals(Response::HTTP_OK, $response->getStatusCode());
4343

4444
unlink($temp);

0 commit comments

Comments
 (0)
0