Skip to content

Commit 2a83e5c

Browse files
authored
Merge pull request Codeception#644 from ThomasLandauer/patch-4
Minor updates
2 parents 3e12fb0 + 1a57b90 commit 2a83e5c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

guides/02-GettingStarted.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Getting Started
22

33
Let's take a look at Codeception's architecture. We'll assume that you have already [installed](https://codeception.com/install) it
4-
and bootstrapped your first test suites. Codeception has generated three of them: unit, functional, and acceptance.
4+
and bootstrapped your first test suites. Codeception has generated three of them: Unit, Functional, and Acceptance.
55
They are well described in the [previous chapter](https://codeception.com/docs/01-Introduction). Inside your __/tests__ folder you will have three `.yml` config files and three directories
6-
with names corresponding to these suites: `Unit`, `Functional`, `Acceptance`. Suites are independent groups of tests with a common purpose.
6+
with names corresponding to these suites: `Unit`, `Functional`, `Acceptance`.
77

88
## The Codeception Syntax
99

@@ -37,22 +37,22 @@ $I->assertEquals('post', $method);
3737

3838
## Actors
3939

40-
One of the main concepts of Codeception is representation of tests as actions of a person. We have a UnitTester, who executes functions and tests the code. We also have a FunctionalTester, a qualified tester,
41-
who tests the application as a whole, with knowledge of its internals. Lastly we have an AcceptanceTester, a user who works with our application
42-
through an interface that we provide.
40+
One of the main concepts of Codeception is representation of tests as actions of a person. We have a "UnitTester", who executes functions and tests the code. We also have a "FunctionalTester", a qualified tester,
41+
who tests the application as a whole, with knowledge of its internals. Lastly we have an "AcceptanceTester", a user who works with our application
42+
in a real browser.
4343

4444
Methods of actor classes are generally taken from [Codeception Modules](https://codeception.com/docs/06-ModulesAndHelpers). Each module provides predefined actions for different testing purposes, and they can be combined to fit the testing environment.
4545
Codeception tries to solve 90% of possible testing issues in its modules, so you don't have to reinvent the wheel.
4646
We think that you can spend more time on writing tests and less on writing support code to make those tests run.
47-
By default, AcceptanceTester relies on PhpBrowser module, which is set in the `tests/acceptance.suite.yml` configuration file:
47+
By default, AcceptanceTester relies on [PhpBrowser](https://codeception.com/docs/modules/PhpBrowser) module, which is set in the `tests/Acceptance.suite.yml` configuration file:
4848

4949
```yaml
5050
actor: AcceptanceTester
5151
modules:
5252
enabled:
5353
- PhpBrowser:
54-
url: http://localhost/myapp/
55-
- \Helper\Acceptance
54+
url: 'http://localhost/myapp/'
55+
- Tests\Support\Helper\Acceptance
5656
```
5757
5858
@@ -67,7 +67,7 @@ php vendor/bin/codecept build
6767

6868
## Writing a Sample Test
6969

70-
Codeception has its own testing format called Cest (Codecept + Test).
70+
Codeception has its own testing format called "Cest" ("Codecept" + "Test").
7171
To start writing a test we need to create a new Cest file. We can do that by running the following command:
7272

7373
```bash
@@ -82,7 +82,7 @@ This will generate `SigninCest.php` file inside `tests/Acceptance` directory. Le
8282
8383
namespace Tests\Acceptance;
8484
85-
use \Tests\Support\AcceptanceTester;
85+
use Tests\Support\AcceptanceTester;
8686
8787
class SigninCest
8888
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy