PHPackages                             eliurkis/laravel-browser-kit-testing - 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. eliurkis/laravel-browser-kit-testing

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

eliurkis/laravel-browser-kit-testing
====================================

Provides backwards compatibility for BrowserKit testing in the latest Laravel release.

v5.1.3(7y ago)08MITPHPPHP &gt;=7.1.3

Since Dec 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/eliurkis/laravel-browser-kit-testing)[ Packagist](https://packagist.org/packages/eliurkis/laravel-browser-kit-testing)[ RSS](/packages/eliurkis-laravel-browser-kit-testing/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (11)Versions (23)Used By (0)

Laravel BrowserKit Testing
==========================

[](#laravel-browserkit-testing)

[![Build Status](https://camo.githubusercontent.com/f37f86a91dcecae3a73e1f6d1253b8d0f47895e41241c4735fb59c6006e2348a/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2f62726f777365722d6b69742d74657374696e672e737667)](https://travis-ci.org/laravel/browser-kit-testing)[![Total Downloads](https://camo.githubusercontent.com/14638494d30744beb6f9de7618254ce24e30219b77e574801d096a15fdcab4c0/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f62726f777365722d6b69742d74657374696e672f642f746f74616c2e737667)](https://packagist.org/packages/laravel/browser-kit-testing)[![Latest Stable Version](https://camo.githubusercontent.com/165a89e01d8630232ac31ff0fffff52497e30641328b3eee02cc9bad5ce272e1/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f62726f777365722d6b69742d74657374696e672f762f737461626c652e737667)](https://packagist.org/packages/laravel/browser-kit-testing)[![License](https://camo.githubusercontent.com/b8afca444558f503addda486b684fa37dfa91bce3fe9ae16a5e1fc2ad1075b8a/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f62726f777365722d6b69742d74657374696e672f6c6963656e73652e737667)](https://packagist.org/packages/laravel/browser-kit-testing)

This package provides a backwards compatibility layer for Laravel 5.3 style "BrowserKit" testing in the latest Laravel release.

- [Official Documentation](#official-documentation)
    - [Installation](#installation)
    - [Introduction](#introduction)
    - [Interacting With Your Application](#interacting-with-your-application)
        - [Interacting With Links](#interacting-with-links)
        - [Interacting With Forms](#interacting-with-forms)
    - [Testing JSON APIs](#testing-json-apis)
        - [Verifying Exact Match](#verifying-exact-match)
        - [Verifying Structural Match](#verifying-structural-match)
    - [Sessions / Authentication](#sessions--authentication)
    - [Disabling Middleware](#disabling-middleware)
    - [Custom HTTP Requests](#custom-http-requests)
    - [PHPUnit Assertions](#phpunit-assertions)
- [License](#license)

Official Documentation
----------------------

[](#official-documentation)

### Installation

[](#installation)

First, install this package:

```
composer require laravel/browser-kit-testing --dev

```

Next, modify your application's base `TestCase` class to extend `Laravel\BrowserKitTesting\TestCase` instead of `Illuminate\Foundation\Testing\TestCase`:

```
