PHPackages                             slimtestclient/slimtestclient - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. slimtestclient/slimtestclient

ActiveLibrary[Testing &amp; Quality](/categories/testing)

slimtestclient/slimtestclient
=============================

Test client for Slim application.

0.3.0(8y ago)023MITPHPPHP &gt;=5.5

Since Jun 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ushiboy/slim-test-client)[ Packagist](https://packagist.org/packages/slimtestclient/slimtestclient)[ Docs](https://github.com/ushiboy/slim-test-client)[ RSS](/packages/slimtestclient-slimtestclient/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Slim Test Client
================

[](#slim-test-client)

[![Build Status](https://camo.githubusercontent.com/e7d5c2d168c139dc83000e3416f56c7b9758cbe91e6354288f7c6760ed693633/68747470733a2f2f7472617669732d63692e6f72672f75736869626f792f736c696d2d746573742d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ushiboy/slim-test-client)

Unofficial test client for Slim Framework.

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

To get started, you first instantiate and configure the Slim application and it pass to SlimTest client. Then you run the client's `request` method and get the response object.

The response object has implements `\Psr\Http\Message\ResponseInterface`, and also it has `getRawBody` and `getParsedBody` methods as an extention.

The `getRawBody` method returns a content of the response body. If the Content-Type of the response is `application/json`, `getParsedBody` method returns the decoded JSON data.

```
