Skip to content

Commit 1360616

Browse files
author
Davert
committed
=auto-updated documentation
1 parent 8ac32ac commit 1360616

11 files changed

+31
-7
lines changed

docs/01-Introduction.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,5 @@ $I->seeInDatabase('users', array('id' => 1, 'username' => 'miles'));
138138

139139
Despite the wide popularity of TDD, few PHP developers ever write automatic tests for their applications. The Codeception framework was developed to make the testing actually fun. It allows writing unit, functional, integration, and acceptance tests in one style.
140140

141-
It could be called a BDD framework. All Codeception tests are written in a descriptive manner. Just by looking in the test body you can get a clear understanding of what is being tested and how it is performed. Even complex tests with many assertions are written in a simple PHP DSL.
141+
It could be called a BDD framework. All Codeception tests are written in a descriptive manner. Just by looking in the test body you can get a clear understanding of what is being tested and how it is performed. Even complex tests with many assertions are written in a simple PHP DSL.
142+
Next Chapter: [GettingStarted](/docs/02-GettingStarted)

docs/02-GettingStarted.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,6 @@ There are plenty of useful Codeception commands.
321321

322322
## Conclusion
323323

324-
We took a look into the Codeception structure. Most of the things you need were already generated by the `bootstrap` command. After you have reviewed the basic concepts and configurations, you can start writing your first scenarios.
324+
We took a look into the Codeception structure. Most of the things you need were already generated by the `bootstrap` command. After you have reviewed the basic concepts and configurations, you can start writing your first scenarios.
325+
Previous Chapter: [Introduction](/docs/01-Introduction)
326+
Next Chapter: [Modules](/docs/03-Modules)

docs/03-Modules.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,6 @@ Codeception provides modules to emulate web requests, access data, interact with
369369
For your application you might need custom actions. These can be defined in helper classes.
370370
If you have written a module that may be useful to others, share it.
371371
Fork the Codeception repository, put the module into the `src/Codeception/Module` directory, and send a pull request. Many thanks if you do so.
372+
373+
Previous Chapter: [GettingStarted](/docs/02-GettingStarted)
374+
Next Chapter: [AcceptanceTests](/docs/04-AcceptanceTests)

docs/04-AcceptanceTests.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,3 +392,6 @@ And in the end we performed assertion on current content.
392392
## Conclusion
393393

394394
Writing acceptance tests with Codeception and PhpBrowser is a good start. You can easily test your Joomla, Drupal, Wordpress sites, as well as those made with frameworks. Writing acceptance tests is like describing a tester's actions in PHP. They are quite readable and very easy to write. Don't forget to repopulate the database on each test run.
395+
396+
Previous Chapter: [Modules](/docs/03-Modules)
397+
Next Chapter: [FunctionalTests](/docs/05-FunctionalTests)

docs/05-FunctionalTests.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,6 @@ But you can demonstrate a sample application with your framework which uses Code
166166

167167
Functional tests are great if you are using powerful frameworks. By using functional tests you can access and manipulate their internal state.
168168
This makes your tests shorter and faster. In other cases, if you don't use frameworks, there is no practical reason to write functional tests.
169-
If you are using a framework other than the ones listed here, create a module for it and share it with community.
169+
If you are using a framework other than the ones listed here, create a module for it and share it with community.
170+
Previous Chapter: [AcceptanceTests](/docs/04-AcceptanceTests)
171+
Next Chapter: [UnitTests-TEST](/docs/06-UnitTests-TEST)

docs/06-UnitTests-TEST.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,6 @@ PHPUnit tests are very cool, but for complex tests you want to have more strict
209209

210210
## Conclusion
211211

212-
PHPUnit tests is a first-class citizen in test suites. Whenever you need to write and execute unit tests, you don't need to install PHPUnit manually, but use a Codeception to execute them. Some nice features are added to common unit tests by integrating Codeception modules. For most of unit and integration testing PHPUnit tests are just enough. They are fast and easy to maintain. But when you need some advanced features like mocking, use the special Cest format, described in next chapters.
212+
PHPUnit tests is a first-class citizen in test suites. Whenever you need to write and execute unit tests, you don't need to install PHPUnit manually, but use a Codeception to execute them. Some nice features are added to common unit tests by integrating Codeception modules. For most of unit and integration testing PHPUnit tests are just enough. They are fast and easy to maintain. But when you need some advanced features like mocking, use the special Cest format, described in next chapters.
213+
Previous Chapter: [FunctionalTests](/docs/05-FunctionalTests)
214+
Next Chapter: [UnitTestsScenarios](/docs/07-UnitTestsScenarios)

docs/07-UnitTestsScenarios.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,6 @@ That's because you can't test the method `render` invoked once and not invoked i
205205
## Conclusion
206206

207207
You are free to decide the testing framework you will use for unit tests. Codeception and PHPUnit run the same engine.
208-
Codeception provides you with a cool DSL to simplify your unit tests. You are writing the scenario definitions, not the actual executed code. Behind the scenes all the dirty work is done by Codeception. You write only the testing logic.
208+
Codeception provides you with a cool DSL to simplify your unit tests. You are writing the scenario definitions, not the actual executed code. Behind the scenes all the dirty work is done by Codeception. You write only the testing logic.
209+
Previous Chapter: [UnitTests-TEST](/docs/06-UnitTests-TEST)
210+
Next Chapter: [UnitTests-CEST](/docs/08-UnitTests-CEST)

docs/08-UnitTests-CEST.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,6 @@ If you don't use ORMs and MySQL, consider using SQLite for testing instead.
322322

323323
## Conclusion
324324

325-
Codeception has it's powers and it's limits. We believe Codeception's limitations keep your tests clean and narrative. Codeception makes writing bad code for tests more difficult. Codeception has simple but powerful tools to create stubs and mocks. Different modules can be attached to unit tests which, just for an example, will simplify database interactions.
325+
Codeception has it's powers and it's limits. We believe Codeception's limitations keep your tests clean and narrative. Codeception makes writing bad code for tests more difficult. Codeception has simple but powerful tools to create stubs and mocks. Different modules can be attached to unit tests which, just for an example, will simplify database interactions.
326+
Previous Chapter: [UnitTestsScenarios](/docs/07-UnitTestsScenarios)
327+
Next Chapter: [Data](/docs/09-Data)

docs/09-Data.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,6 @@ Using fixtures simplifies your testing code. Name your fixtures wisely and your
245245

246246
Codeception is not abandoning the developer when dealing with data. Tools for database population and cleanups are bundled within the Db module.
247247
To manipulate sample data in a test, use fixtures that can be defined within the bootstrap file.
248+
249+
Previous Chapter: [UnitTests-CEST](/docs/08-UnitTests-CEST)
250+
Next Chapter: [WebServices](/docs/10-WebServices)

docs/10-WebServices.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,6 @@ class ApiHelper extends \Codeception\Module {
204204
205205
## Conclusion
206206
207-
Codeception has two modules that will help you to test various web services. They need a new `api` suite to be created. Remember, you are not limited to test only response body. By including Db module you may check if a user was created after the `CreateUser` call. You can improve testing scenarios by using REST or SOAP responses in your helper methods.
207+
Codeception has two modules that will help you to test various web services. They need a new `api` suite to be created. Remember, you are not limited to test only response body. By including Db module you may check if a user was created after the `CreateUser` call. You can improve testing scenarios by using REST or SOAP responses in your helper methods.
208+
Previous Chapter: [Data](/docs/09-Data)
209+
Next Chapter: [Codecoverage](/docs/11-Codecoverage)

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