Skip to content

Implementation of Symfony's BrowserKit for Nette applications.

Notifications You must be signed in to change notification settings

glami/NBrowserKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBrowserKit

Build Status 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()->getStatusCode());
	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

About

Implementation of Symfony's BrowserKit for Nette applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%