Statistics
8715
2
1
29d
Badges
Requirements

NBrowserKit

Shippable CircleCI Current version

This package implements Symfony's BrowserKit Client for use with a Nette application.

Usage


	$client = new Client;
	$client->setContainer($container);

	$client->request('GET', '/');

	Assert::same(200, $client->getResponse()->getStatus());
	Assert::contains('Hello World', $client->getResponse()->getContent());

You can find more examples in The Symfony Book.

Example of usage with Nette and Nette Tester: https://github.com/VaclavSir/NBrowserKit-example

Running Tests

Tests for this package are written using Nette Tester library. You can run them easily from the command line:

	composer install --dev
	vendor/bin/tester tests

No release at this moment. Try to create first one.

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com