You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/01-Introduction.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,19 +18,19 @@ Out of the box you have tools for writing unit, functional, and acceptance tests
18
18
19
19
| | Unit Tests | Functional Tests | Acceptance Tests
20
20
| --- | --- | --- | --- |
21
-
| Scope of the test | Single PHP class | PHP Framework (Routing, Controllers, etc.) | Page in browser (Chrome, Firefox, or [PhpBrowser](https://codeception.com/docs/03-AcceptanceTests#PhpBrowser)) |
21
+
| Scope of the test | Single PHP class | PHP Framework (Routing, Database, etc.) | Page in browser (Chrome, Firefox, or [PhpBrowser](https://codeception.com/docs/03-AcceptanceTests#PhpBrowser)) |
22
22
| Testing computer needs access to project's PHP files | Yes | Yes | No |
One of the main advantages of Codeception is that you don't have to decide on just *one* type of testing. You should have all three!
30
30
And chances are, that you will (sooner or later) need all three. That's why Codeception consists of three so-called "suites":
31
-
A "unit suite" for all unit tests, a "functional suite" for all functional tests, and an "acceptance suite" for all acceptance tests.
31
+
A "Unit suite" for all unit tests, a "functional suite" for all functional tests, and an "Acceptance suite" for all acceptance tests.
32
32
33
-
Let's review those three testing types in reverse order.
33
+
Let's review those three test types in reverse order.
34
34
35
35
### Acceptance Tests
36
36
@@ -57,11 +57,11 @@ $I->see('Thank you for Signing Up!');
57
57
### Functional Tests
58
58
59
59
What if you could check our application without running it on a server?
60
-
That way you could see detailed exceptions on errors, have our tests run faster, and check the database against predictable and expected results. That's what functional tests are for.
60
+
That way you could see detailed exceptions on errors, have your tests run faster, and check the database against predictable and expected results. That's what functional tests are for.
61
61
62
62
For functional tests, you emulate a web request (`$_GET` and `$_POST` variables) which returns the HTML response. Inside a test, you can make assertions about the response, and you can check if the data was successfully stored in the database.
63
63
64
-
For functional tests, your application needs to be structured in order to run in a test environment. Codeception provides connectors to all popular PHP frameworks.
64
+
For functional tests, your application needs to be structured in order to run in a test environment. Codeception provides modules for all popular PHP frameworks.
0 commit comments