This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/BrowserKit/README.md

29 lines
917 B
Markdown
Raw Normal View History

BrowserKit Component
====================
2011-12-18 13:18:13 +00:00
BrowserKit simulates the behavior of a web browser.
The component only provide an abstract client and does not provide any
"default" backend for the HTTP layer.
Resources
---------
2011-12-18 13:18:13 +00:00
For a simple implementation of a browser based on an HTTP layer, have a look
at [Goutte](https://github.com/fabpot/Goutte).
2011-12-18 13:18:13 +00:00
For an implementation based on HttpKernelInterface, have a look at the
[Client](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Client.php)
provided by the HttpKernel component.
You can run the unit tests with the following command:
phpunit -c src/Symfony/Component/BrowserKit/
If you also want to run the unit tests that depend on other Symfony
Components, declare the following environment variables before running
PHPUnit:
export SYMFONY_PROCESS=../path/to/Process
export SYMFONY_DOM_CRAWLER=../path/to/DomCrawler