Skip to content

Commit 972b87e

Browse files
committed
auto updated documentation
1 parent ba96740 commit 972b87e

20 files changed

Lines changed: 169 additions & 25 deletions

changelog.markdown

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@ title: Codeception Changelog
77

88
# Changelog
99

10+
#### 2.1.6
11+
12+
* Starting from 2.1.6 you can **download PHP 5.4 compatible phar build** at http://codeception.com/php54/codecept.phar by <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong>. See [installation guide](http://codeception.com/install).
13+
* <strong>[WebDriver]</strong> Fixed uploading files with **PhantomJS** <a href="https://github.com/Codeception/Codeception/issues/1823">#1823</a> by <strong><a href="https://github.com/DavertMik">@DavertMik</a></strong> and <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong>. Please specify your browser name as `phantom` in WebDriver config in order to use PhantomJS-specific hooks.
14+
* Fixed parsing PHP files with spaces in name on PHP<7 by <strong><a href="https://github.com/acuthbert">@acuthbert</a></strong>. Fixes <a href="https://github.com/Codeception/Codeception/issues/2647">#2647</a>
15+
* <strong>[WebDriver]</strong> Fixed proxy error when using with Chrome <a href="https://github.com/Codeception/Codeception/issues/2651">#2651</a> by <strong><a href="https://github.com/vaikla">@vaikla</a></strong>
16+
* <strong>[Laravel5]</strong> Allow Laravel5 application URL to be set through config. By <strong><a href="https://github.com/gmhenderson">@gmhenderson</a></strong>. See <a href="https://github.com/Codeception/Codeception/issues/2676">#2676</a>
17+
* <strong>[Laravel5]</strong> Mocked events should also return an array. Fix by <strong><a href="https://github.com/devinfd">@devinfd</a></strong>
18+
* Fixed using codecoverage with environments <a href="https://github.com/Codeception/Codeception/issues/2634">#2634</a>
19+
* Various HHVM improvements by <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong>, for instance, Asserts module issues has been fixed.
20+
* <strong>[REST]</strong> Fixes <a href="https://github.com/Codeception/Codeception/issues/2775">#2775</a> `seeResponseJsonMatchesXpath` when JSON contains ampersand. By <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong>.
21+
* <strong>[Filesystem]</strong> Added `seeNumberNewLines` method to check the number of new lines in opened file. By <strong><a href="https://github.com/sergeyklay">@sergeyklay</a></strong>
22+
* <strong>[Symfony2]</strong> Added `seeCurrentRouteMatches` action by <strong><a href="https://github.com/laszlo">@laszlo</a></strong>-karpati See <a href="https://github.com/Codeception/Codeception/issues/2665">#2665</a>
23+
* <strong>[Sequence]</strong> Added `sqs` function to generate unique sequences per suite. <a href="https://github.com/Codeception/Codeception/issues/2766">#2766</a> by <strong><a href="https://github.com/johnatannvmd">@johnatannvmd</a></strong>
24+
* <strong>[FTP]</strong> Fixed various bugs by <strong><a href="https://github.com/k">@k</a></strong>-serenade. See <a href="https://github.com/Codeception/Codeception/issues/2755">#2755</a>
25+
* <strong>[Frameworks]</strong><strong>[PhpBrowser]</strong> Fixed <a href="https://github.com/Codeception/Codeception/issues/2733">#2733</a>: `seeOptionIsSelected` sees first option as selected if none is selected by <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong>
26+
* <strong>[Symfony2]</strong> Removed 'localhost' from getInternalDomains by <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong>. Fixed <a href="https://github.com/Codeception/Codeception/issues/2717">#2717</a>
27+
* Bugfix for using groups by directory on Windows by <strong><a href="https://github.com/tortuetorche">@tortuetorche</a></strong> See <a href="https://github.com/Codeception/Codeception/issues/2550">#2550</a> and <a href="https://github.com/Codeception/Codeception/issues/2551">#2551</a>
28+
* <strong>[REST]</strong> Fixed failed message for `seeHttpHeader` and `dontSeeHttpHeader` from null to expected value <a href="https://github.com/Codeception/Codeception/issues/2697">#2697</a> by <strong><a href="https://github.com/zondor">@zondor</a></strong>
29+
* <strong>[REST]</strong> Added methods to control redirect: `stopFollowingRedirects` and `startFollowingRedirects` by <strong><a href="https://github.com/brutuscat">@brutuscat</a></strong>
30+
* [Recorder Extension] Added `animate_slides` config to disable left-right sliding animation between screenshots by <strong><a href="https://github.com/vml">@vml</a></strong>-rmott
31+
32+
33+
1034
#### 2.1.5
1135

1236
* **PHP7 support**

docs/modules/Asserts.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ title: Asserts - Codeception - Documentation
1212

1313
Special module for using asserts in your tests.
1414

15-
<div class="alert alert-warning">Warning: does not work on <a href="https://github.com/facebook/hhvm/issues/5786">HHVM</a></div>
16-
1715

1816
#### assertContains
1917

@@ -41,7 +39,6 @@ Checks that two variables are equal.
4139
* `param string` $message
4240

4341

44-
4542
#### assertFalse
4643

4744
Checks that condition is negative.
@@ -53,15 +50,15 @@ Checks that condition is negative.
5350
#### assertFileExists
5451

5552
Checks if file exists
56-
53+
5754
* `param string` $filename
5855
* `param string` $message
5956

6057

6158
#### assertFileNotExists
6259

6360
Checks if file doesn't exist
64-
61+
6562
* `param string` $filename
6663
* `param string` $message
6764

@@ -190,7 +187,6 @@ Checks that two variables are same
190187
* `param string` $message
191188

192189

193-
194190
#### assertTrue
195191

196192
Checks that condition is positive.

docs/modules/FTP.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,24 @@ $I->seeInThisFile('codeception/codeception');
434434
* `param` $text
435435

436436

437+
#### seeNumberNewLines
438+
439+
Checks If opened file has the `number` of new lines.
440+
441+
Usage:
442+
443+
{% highlight php %}
444+
445+
<?php
446+
$I->openFile('composer.json');
447+
$I->seeNumberNewLines(5);
448+
?>
449+
450+
{% endhighlight %}
451+
452+
* `param int` $number New lines
453+
454+
437455
#### writeToFile
438456

439457
Saves contents to tmp file and uploads the FTP/SFTP system.

docs/modules/Filesystem.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,24 @@ $I->seeInThisFile('codeception/codeception');
192192
* `param` $text
193193

194194

195+
#### seeNumberNewLines
196+
197+
Checks If opened file has the `number` of new lines.
198+
199+
Usage:
200+
201+
{% highlight php %}
202+
203+
<?php
204+
$I->openFile('composer.json');
205+
$I->seeNumberNewLines(5);
206+
?>
207+
208+
{% endhighlight %}
209+
210+
* `param int` $number New lines
211+
212+
195213
#### writeToFile
196214

197215
Saves contents to file

docs/modules/Laravel4.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,8 @@ $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
14521452
#### submitForm
14531453

14541454
Submits the given form on the page, optionally with the given form
1455-
values. Give the form fields values as an array.
1455+
values. Pass the form field's values as an array in the second
1456+
parameter.
14561457

14571458
Although this function can be used as a short-hand version of
14581459
`fillField()`, `selectOption()`, `click()` etc. it has some important

docs/modules/Laravel5.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ See the Acceptance tests section below for more details.
3939
* packages: `string`, default `workbench` - Root path of application packages (if any).
4040
* disable_middleware: `boolean`, default `false` - disable all middleware.
4141
* disable_events: `boolean`, default `false` - disable all events.
42+
* url: `string`, default `` - The application URL.
4243

4344
### API
4445

@@ -212,14 +213,14 @@ an array of credentials.
212213
$I->amLoggedAs(['username' => 'jane * `example.com',` 'password' => 'password']);
213214

214215
// provide User object
215-
$I->amLoggesAs( new User );
216+
$I->amLoggedAs( new User );
216217

217218
// can be verified with $I->seeAuthentication();
218219
?>
219220

220221
{% endhighlight %}
221222
* `param` \Illuminate\Contracts\Auth\User|array $user
222-
* `param` string|null $driver 'eloquent', 'database', or custom driver
223+
* `param` string|null $driver The authentication driver for Laravel <= 5.1.*, guard name for Laravel >= 5.2
223224
* `return` void
224225

225226

@@ -1536,7 +1537,8 @@ $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
15361537
#### submitForm
15371538

15381539
Submits the given form on the page, optionally with the given form
1539-
values. Give the form fields values as an array.
1540+
values. Pass the form field's values as an array in the second
1541+
parameter.
15401542

15411543
Although this function can be used as a short-hand version of
15421544
`fillField()`, `selectOption()`, `click()` etc. it has some important

docs/modules/Lumen.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,8 @@ $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
12411241
#### submitForm
12421242

12431243
Submits the given form on the page, optionally with the given form
1244-
values. Give the form fields values as an array.
1244+
values. Pass the form field's values as an array in the second
1245+
parameter.
12451246

12461247
Although this function can be used as a short-hand version of
12471248
`fillField()`, `selectOption()`, `click()` etc. it has some important

docs/modules/Phalcon1.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,8 @@ $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
12951295
#### submitForm
12961296

12971297
Submits the given form on the page, optionally with the given form
1298-
values. Give the form fields values as an array.
1298+
values. Pass the form field's values as an array in the second
1299+
parameter.
12991300

13001301
Although this function can be used as a short-hand version of
13011302
`fillField()`, `selectOption()`, `click()` etc. it has some important

docs/modules/Phalcon2.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,8 @@ $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
12961296
#### submitForm
12971297

12981298
Submits the given form on the page, optionally with the given form
1299-
values. Give the form fields values as an array.
1299+
values. Pass the form field's values as an array in the second
1300+
parameter.
13001301

13011302
Although this function can be used as a short-hand version of
13021303
`fillField()`, `selectOption()`, `click()` etc. it has some important

docs/modules/PhpBrowser.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ If test fails stores last shown page in 'output' dir.
4646
auth: ['admin', '123345']
4747
curl:
4848
CURLOPT_RETURNTRANSFER: true
49+
cookies:
50+
cookie-1:
51+
Name: userName
52+
Value: john.doe
53+
cookie-2:
54+
Name: authToken
55+
Value: 1abcd2345
56+
Domain: subdomain.domain.com
57+
Path: /admin/
58+
Expires: 1292177455
59+
Secure: true
60+
HttpOnly: false
4961

5062

5163
All SSL certification checks are disabled by default.
@@ -1214,7 +1226,8 @@ $I->amOnPage('test-headers.php');
12141226
#### submitForm
12151227

12161228
Submits the given form on the page, optionally with the given form
1217-
values. Give the form fields values as an array.
1229+
values. Pass the form field's values as an array in the second
1230+
parameter.
12181231

12191232
Although this function can be used as a short-hand version of
12201233
`fillField()`, `selectOption()`, `click()` etc. it has some important

0 commit comments

Comments
 (0)