Skip to content

Commit ca0ac91

Browse files
authored
Merge pull request #334 from ThomasLandauer/patch-2
Update 04-FunctionalTests.md
2 parents 5605469 + 1c47d91 commit ca0ac91

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/04-FunctionalTests.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ title: 04-FunctionalTests - Codeception - Documentation
88
Now that we've written some acceptance tests, functional tests are almost the same, with one major difference:
99
Functional tests don't require a web server.
1010

11-
In simple terms we set the `$_REQUEST`, `$_GET` and `$_POST` variables and then we execute the application from a test.
12-
This may be valuable, as functional tests are faster and provide detailed stack traces on failures.
11+
Under the hood, Codeception uses Symfony's [BrowserKit](https://symfony.com/doc/current/components/browser_kit.html)
12+
to "send" requests to your app. So there's no real HTTP request made, but rather a BrowserKit
13+
[Request object](https://github.com/symfony/browser-kit/blob/master/Request.php) with the required properties is
14+
passed to your framework's (font-)controller.
1315

14-
Codeception can connect to different PHP frameworks that support functional testing: Symfony2, Laravel5, Yii2,
15-
Zend Framework and others. You just need to enable the desired module in your functional suite configuration to start.
16+
As a first step, you need to enable Codeception's module for your framework in `functional.suite.yml` (see below).
1617

17-
Modules for all of these frameworks share the same interface, and thus your tests are not bound to any one of them.
18+
All of Codeception's framework modules share the same interface, and thus your tests are not bound to any one of them.
1819
This is a sample functional test:
1920

2021
{% highlight php %}

0 commit comments

Comments
 (0)