Skip to content

Commit

Permalink
Merge pull request #102 from alexjjassuncao/master
Browse files Browse the repository at this point in the history
Fix deprecated methods on HomepageTest
  • Loading branch information
l0gicgate authored May 1, 2019
2 parents 0bac600 + 4298e40 commit 6ff3ed9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Functional/HomepageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public function testGetHomepageWithoutName()
$response = $this->runApp('GET', '/');

$this->assertEquals(200, $response->getStatusCode());
$this->assertContains('SlimFramework', (string)$response->getBody());
$this->assertNotContains('Hello', (string)$response->getBody());
$this->assertStringContainsString('SlimFramework', (string)$response->getBody());
$this->assertStringNotContainsString('Hello', (string)$response->getBody());
}

/**
Expand All @@ -24,7 +24,7 @@ public function testGetHomepageWithGreeting()
$response = $this->runApp('GET', '/name');

$this->assertEquals(200, $response->getStatusCode());
$this->assertContains('Hello name!', (string)$response->getBody());
$this->assertStringContainsString('Hello name!', (string)$response->getBody());
}

/**
Expand All @@ -35,6 +35,6 @@ public function testPostHomepageNotAllowed()
$response = $this->runApp('POST', '/', ['test']);

$this->assertEquals(405, $response->getStatusCode());
$this->assertContains('Method not allowed', (string)$response->getBody());
$this->assertStringContainsString('Method not allowed', (string)$response->getBody());
}
}

0 comments on commit 6ff3ed9

Please sign in to comment.