Giter Site home page Giter Site logo

nbrowserkit's Introduction

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

nbrowserkit's People

Contributors

janmikes avatar legendik avatar vaclavsir avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

nbrowserkit's Issues

Nette 3.0 compatibility

When trying to install with nette 3.0:

Problem 1
    - vaclav-sir/n-browser-kit v1.1.1 requires nette/di ^2.3.0 -> satisfiable by nette/di[v2.4.15, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.2, v2.3.3, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.3.x-dev, v2.4.0, v2.4.1, v2.4.10, v2.4.11, v2.4.12, v2.4.13, v2.4.14, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.4.x-dev].

I will try today if can be safely updated and send pr.

Update composer dependencies

Current vs latest:

  • symfony/dom-crawler (v3.0.9) latest is v3.2.3
  • symfony/browser-kit (v2.8.17) latest is v3.2.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.