Skip to content

Commit 2694489

Browse files
committed
Merge pull request #11 from guillermoandrae/master
Updated the example in the README for latest code changes
2 parents 701dea4 + 891c817 commit 2694489

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ version from the application config. We're asserting that Slim responded with a
3434
`200` and that the version matches what we expect.
3535

3636
```php
37-
class VersionTest extends Slim_Framework_TestCase {
37+
class VersionTest extends LocalWebTestCase {
3838
public function testVersion() {
39-
$this->get('/version');
40-
$this->assertEquals(200, $this->response->status());
41-
$this->assertEquals($this->app->config('version'), $this->response->body());
39+
$this->client->get('/version');
40+
$this->assertEquals(200, $this->client->response->status());
41+
$this->assertEquals($this->app->config('version'), $this->client->response->body());
4242
}
4343
}
4444
```

0 commit comments

Comments
 (0)