Skip to content

Commit 175b96d

Browse files
committed
auto updated documentation
1 parent 78fd231 commit 175b96d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2963
-2864
lines changed

_includes/guides.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<li><a href="/docs/01-Introduction">Introduction</a></li><li><a href="/docs/02-GettingStarted">Getting Started</a></li><li><a href="/docs/03-ModulesAndHelpers">Modules And Helpers</a></li><li><a href="/docs/04-AcceptanceTests">Acceptance Tests</a></li><li><a href="/docs/05-FunctionalTests">Functional Tests</a></li><li><a href="/docs/06-UnitTests">Unit Tests</a></li><li><a href="/docs/07-AdvancedUsage">Advanced Usage</a></li><li><a href="/docs/08-Customization">Customization</a></li><li><a href="/docs/09-Data">Data</a></li><li><a href="/docs/10-WebServices">Web Services</a></li><li><a href="/docs/11-Codecoverage">Codecoverage</a></li><li><a href="/docs/12-ParallelExecution">Parallel Execution</a></li>
1+
<li><a href="/docs/01-Introduction">Introduction</a></li><li><a href="/docs/02-GettingStarted">Getting Started</a></li><li><a href="/docs/03-AcceptanceTests">Acceptance Tests</a></li><li><a href="/docs/04-FunctionalTests">Functional Tests</a></li><li><a href="/docs/05-UnitTests">Unit Tests</a></li><li><a href="/docs/06-ReusingTestCode">Reusing Test Code</a></li><li><a href="/docs/07-AdvancedUsage">Advanced Usage</a></li><li><a href="/docs/08-Customization">Customization</a></li><li><a href="/docs/09-Data">Data</a></li><li><a href="/docs/10-WebServices">Web Services</a></li><li><a href="/docs/11-Codecoverage">Codecoverage</a></li><li><a href="/docs/12-ParallelExecution">Parallel Execution</a></li>

_includes/modules.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<li><a href="/docs/modules/AMQP">AMQP</a></li><li><a href="/docs/modules/Phalcon1">Phalcon1</a></li><li><a href="/docs/modules/Asserts">Asserts</a></li><li><a href="/docs/modules/PhpBrowser">PhpBrowser</a></li><li><a href="/docs/modules/Cli">Cli</a></li><li><a href="/docs/modules/Queue">Queue</a></li><li><a href="/docs/modules/Db">Db</a></li><li><a href="/docs/modules/REST">REST</a></li><li><a href="/docs/modules/Dbh">Dbh</a></li><li><a href="/docs/modules/Redis">Redis</a></li><li><a href="/docs/modules/Doctrine1">Doctrine1</a></li><li><a href="/docs/modules/SOAP">SOAP</a></li><li><a href="/docs/modules/Doctrine2">Doctrine2</a></li><li><a href="/docs/modules/Sequence">Sequence</a></li><li><a href="/docs/modules/FTP">FTP</a></li><li><a href="/docs/modules/Silex">Silex</a></li><li><a href="/docs/modules/Facebook">Facebook</a></li><li><a href="/docs/modules/Symfony1">Symfony1</a></li><li><a href="/docs/modules/Filesystem">Filesystem</a></li><li><a href="/docs/modules/Symfony2">Symfony2</a></li><li><a href="/docs/modules/Kohana">Kohana</a></li><li><a href="/docs/modules/WebDriver">WebDriver</a></li><li><a href="/docs/modules/Laravel4">Laravel4</a></li><li><a href="/docs/modules/XMLRPC">XMLRPC</a></li><li><a href="/docs/modules/Laravel5">Laravel5</a></li><li><a href="/docs/modules/Yii1">Yii1</a></li><li><a href="/docs/modules/Lumen">Lumen</a></li><li><a href="/docs/modules/Yii2">Yii2</a></li><li><a href="/docs/modules/Memcache">Memcache</a></li><li><a href="/docs/modules/ZF1">ZF1</a></li><li><a href="/docs/modules/MongoDb">MongoDb</a></li><li><a href="/docs/modules/ZF2">ZF2</a></li>
1+
<li><a href="/docs/modules/AMQP">AMQP</a></li><li><a href="/docs/modules/PhpBrowser">PhpBrowser</a></li><li><a href="/docs/modules/Asserts">Asserts</a></li><li><a href="/docs/modules/Queue">Queue</a></li><li><a href="/docs/modules/Cli">Cli</a></li><li><a href="/docs/modules/REST">REST</a></li><li><a href="/docs/modules/Db">Db</a></li><li><a href="/docs/modules/Redis">Redis</a></li><li><a href="/docs/modules/Dbh">Dbh</a></li><li><a href="/docs/modules/SOAP">SOAP</a></li><li><a href="/docs/modules/Doctrine2">Doctrine2</a></li><li><a href="/docs/modules/Sequence">Sequence</a></li><li><a href="/docs/modules/FTP">FTP</a></li><li><a href="/docs/modules/Silex">Silex</a></li><li><a href="/docs/modules/Facebook">Facebook</a></li><li><a href="/docs/modules/Symfony2">Symfony2</a></li><li><a href="/docs/modules/Filesystem">Filesystem</a></li><li><a href="/docs/modules/WebDriver">WebDriver</a></li><li><a href="/docs/modules/Laravel4">Laravel4</a></li><li><a href="/docs/modules/XMLRPC">XMLRPC</a></li><li><a href="/docs/modules/Laravel5">Laravel5</a></li><li><a href="/docs/modules/Yii1">Yii1</a></li><li><a href="/docs/modules/Lumen">Lumen</a></li><li><a href="/docs/modules/Yii2">Yii2</a></li><li><a href="/docs/modules/Memcache">Memcache</a></li><li><a href="/docs/modules/ZF1">ZF1</a></li><li><a href="/docs/modules/MongoDb">MongoDb</a></li><li><a href="/docs/modules/ZF2">ZF2</a></li><li><a href="/docs/modules/Phalcon1">Phalcon1</a></li>

changelog.markdown

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,55 @@ title: Codeception Changelog
77

88
# Changelog
99

10-
#### 2.0.16
11-
12-
* <strong>[REST]</strong> Module usage should not depend on order it was declared. Fixes <a href="https://github.com/Codeception/Codeception/issues/2100">#2100</a> by <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong>
13-
* <strong>[Db]</strong> When `populate` is enabled cleanup should happen only if enabled too <a href="https://github.com/Codeception/Codeception/issues/2148">#2148</a> by <strong><a href="https://github.com/gammamatrix">@gammamatrix</a></strong>
14-
* <strong>[Laravel5]</strong> Rewrite of module to fix open issues and other problems *2015-07-09*
10+
#### 2.1.1
11+
12+
* <strong>[WebDriver]</strong> **Upgraded to facebook/webdriver 1.0** *2015-07-11*
13+
WebDriver classes were moved to `Facebook\WebDriver` namespace. Please take that into account when using WebDriver API directly.
14+
Till 2.2 Codeception will keep non-namespaced aliases of WebDriver classes.
15+
* Module Reference now contains documentation for hidden API methods which should be used in Helper classes
16+
* Skipped and Incomplete tests won't fire `test.before` and `test.after` events. For instamce, WebDriver browser with won't be started and Db cleanups won't be executed on skipped tests.
17+
* Annotations `<strong><a href="https://github.com/skip">@skip</a></strong>` and `<strong><a href="https://github.com/incomplete">@incomplete</a></strong>` enabled in Cest files <a href="https://github.com/Codeception/Codeception/issues/2131">#2131</a>
18+
* <strong>[WebDriver]</strong><strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> `_findElements($locator)` method added to use in Helper classes *2015-07-11*
19+
Now you can use `$this->getModule('WebDriver')->findElements('.user');` in Helpers to match all elements with `user` class using WebDriver module
20+
* <strong>[PhpBrowser]</strong> Fixed `amOnUrl` method to open absolute URLs.
21+
* <strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Fix for `fillField` using values that contain ampersands by <strong><a href="https://github.com/GawainLynch">@GawainLynch</a></strong> and <strong><a href="https://github.com/zbateson">@zbateson</a></strong> Issue <a href="https://github.com/Codeception/Codeception/issues/2132">#2132</a>
22+
* <strong>[WebDriver]</strong><strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Fixed missing HTTPS when trying to access protected pages <a href="https://github.com/Codeception/Codeception/issues/2141">#2141</a>
23+
24+
#### 2.1.0
25+
26+
* <strong>[Recorder]</strong>(https://github.com/Codeception/Codeception/tree/master/ext#codeceptionextensionrecorder) extension added. Shows acceptance test progress with a recorded slideshow.
27+
* **Updated to Guzzle 6**. Codeception can now work both with Guzzle v5 and Guzzle v6. PhpBrowser chooses right connector depending on Guzzle version installed. By <strong><a href="https://github.com/davertmik">@davertmik</a></strong> and <strong><a href="https://github.com/enumag">@enumag</a></strong>
28+
* Annotations in Cept files.
29+
Instead of calling `$scenario->skip()`, `$scenario->group('firefox')`, etc, it is recommended to set scenario metadata with annotations `// <strong><a href="https://github.com/skip">@skip</a></strong>`, `// <strong><a href="https://github.com/group">@group</a></strong> firefox`.
30+
Annotations can be parsed from line or block comments. `$scenario->skip()` and `$scenario->incomplete()` are still valid and can be executed inside conditional statements:
31+
```
32+
if (!extension_loaded('xdebug')) $scenario->skip('Xdebug required')
33+
```
34+
* **PSR-4**: all support classes moved to `tests/_support` by default. Actors, Helpers, PageObjects, StepObjects, GroupObjects to follow PSR-4 naming style. Autoloader implemented by <strong><a href="https://github.com/splinter89">@splinter89</a></strong>.
35+
* **Dependency Injection**: support classes can be injected into tests. Support classes can be injected into each other too. This happens by implementing method `_inject` and explicitly specifying class names as parameters. Implemented by <strong><a href="https://github.com/splinter89">@splinter89</a></strong>.
36+
* **Actor classes can be extended**, their generated parts were moved to special traits in `_generated` namespace. Each *Tester class can be updated with custom methods.
37+
* **Module config simplified**: Modules can be configured in `enabled` section of suite config.
38+
* **Conflicts**: module can define conflicts with each other by implementing `_conflicts` method
39+
* **Dependencies**: module can explicitly define dependencies and expect their injection by implementing `_inject` and `_depends` methods and relying on dependency injection container.
40+
* **Current** modules, environment, and test name can be received in scenario. Example: `$scenario->current('env')` returns current environment name. Fixes <a href="https://github.com/Codeception/Codeception/issues/1251">#1251</a>
41+
* **Environment Matrix**: environments can be merged. Environment configs can be created in `tests/_envs`, environment generator added. Implemented by By <strong><a href="https://github.com/sjableka">@sjableka</a></strong>. See <a href="https://github.com/Codeception/Codeception/issues/1747">#1747</a>
42+
* **Custom Printers**: XML, JSON, TAP, Report printers can be redefined in configuration. See <a href="https://github.com/Codeception/Codeception/issues/1425">#1425</a>
43+
* <strong>[Db]</strong> Added `reconnect` option for long running tests, which will connect to database before the test and disconnect after. By <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong>
44+
* Module parts. Actions of modules can be loaded partially in order to disable actions which are not used in current tests. For instance, disable web actions of framework modules in unit testsing.
45+
* **Kohana**, **Symfony1**, **Doctrine1** modules considered deprecated and moved to standalone packages.
46+
* `shuffle` added to settings. Randomizes order of running tests. See <a href="https://github.com/Codeception/Codeception/issues/1504">#1504</a>
47+
* Console output improved: scenario stack traces contain files and lines of fail.
48+
* <strong>[Doctrine2]</strong><strong>[Symfony2]</strong> `symfony_em_service` config option moved from Doctrine2 to Symfony2 module and renamed to `em_service` *2015-06-03*
49+
* <strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Fixed cloning form nodes `Codeception\Lib\InnerBrowser::getFormFromCrawler(): ID XXX already defined` *2015-05-13*
50+
* <strong>[WebDriver]</strong> session snapshot implemented, allows to store cookies and load them, i.e., to keep user session between testss.
51+
* <strong>[WebDriver]</strong><strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Malformed XPath locators wil throw an exception <a href="https://github.com/Codeception/Codeception/issues/1441">#1441</a>
52+
* `MODULE_INIT` event is fired before initializing modules <a href="https://github.com/Codeception/Codeception/issues/1370">#1370</a>
53+
* Graceful tests termination using `pcntl_signal`. See <a href="https://github.com/Codeception/Codeception/issues/1286">#1286</a>
54+
* Group classes renamed to GroupObjects; Base GroupObject class renamed to `Codeception\GroupObject`
55+
* Official extensions moved to `ext` dir; Base Extension class renamed to `Codeception\Extension`
56+
* Duplicate environment options won't cause Codeception to run environment tests twice
57+
* <strong>[Phalcon1]</strong> `haveServiceInDi` method implemented by <strong><a href="https://github.com/sergeyklay">@sergeyklay</a></strong>
58+
* <strong>[Db]</strong> `seeNumRecords` method added by <strong><a href="https://github.com/sergeyklay">@sergeyklay</a></strong>
1559

1660
#### 2.0.15
1761

@@ -122,6 +166,11 @@ Modifications to ensure multiple values get sent correctly.
122166
* <strong>[Yii2]</strong> Fixed usage of PUT method by <strong><a href="https://github.com/miroslav">@miroslav</a></strong>-chandler *2015-02-23*
123167

124168

169+
#### 2.1.0
170+
171+
* <strong>[WebDriver]</strong> Saving and restoring session snapshots implemented *2015-03-16*
172+
173+
125174
#### 2.0.10
126175

127176
* **Console Improvement**: better formatting of test progress. Improved displaying of debug messages and PHP Fatal Errors.

docs/01-Introduction.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Please, note that **any website** can be covered with acceptance tests. Even if
3232
$I = new AcceptanceTester($scenario);
3333
$I->amOnPage('/');
3434
$I->click('Sign Up');
35-
$I->submitForm('#signup', array('username' => 'MilesDavis', 'email' => 'miles@davis.com'));
35+
$I->submitForm('#signup', ['username' => 'MilesDavis', 'email' => 'miles@davis.com']);
3636
$I->see('Thank you for Signing Up!');
3737
?>
3838

@@ -68,10 +68,10 @@ For functional tests your application should be prepared to be run in a test env
6868
$I = new FunctionalTester($scenario);
6969
$I->amOnPage('/');
7070
$I->click('Sign Up');
71-
$I->submitForm('#signup', array('username' => 'MilesDavis', 'email' => 'miles@davis.com'));
71+
$I->submitForm('#signup', ['username' => 'MilesDavis', 'email' => 'miles@davis.com']);
7272
$I->see('Thank you for Signing Up!');
7373
$I->seeEmailSent('miles@davis.com', 'Thank you for registration');
74-
$I->seeInDatabase('users', array('email' => 'miles@davis.com'));
74+
$I->seeInDatabase('users', ['email' => 'miles@davis.com']);
7575
?>
7676

7777
{% endhighlight %}
@@ -109,7 +109,7 @@ function testSavingUser()
109109
$user->setSurname('Davis');
110110
$user->save();
111111
$this->assertEquals('Miles Davis', $user->getFullName());
112-
$this->unitTester->seeInDatabase('users',array('name' => 'Miles', 'surname' => 'Davis'));
112+
$this->unitTester->seeInDatabase('users', ['name' => 'Miles', 'surname' => 'Davis']);
113113
}
114114
?>
115115

@@ -136,4 +136,4 @@ It could be called a BDD framework. All Codeception tests are written in a descr
136136

137137

138138

139-
* **Next Chapter: [GettingStarted >](/docs/02-GettingStarted)**<p>&nbsp;</p><div class="alert alert-warning">Docs are incomplete? Outdated? Or you just found a typo? <a href="https://github.com/Codeception/Codeception/tree/2.0/docs">Help us to improve documentation. Edit it on GitHub</a></div>
139+
* **Next Chapter: [GettingStarted >](/docs/02-GettingStarted)**

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