Skip to content

Commit a7c2241

Browse files
committed
Merge branch 'master' of github.com:Codeception/codeception.github.com
2 parents 828634b + d7f435f commit a7c2241

16 files changed

+527
-130
lines changed

builds.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ title: Codeception Builds
77
## 2.2
88
*Requires: PHP 5.4 and higher + CURL*
99

10-
* **[Download Latest 2.2 Release](http://codeception.com/releases/2.2.2/codecept.phar)**
10+
* **[Download Latest 2.2 Release](http://codeception.com/releases/2.2.3/codecept.phar)**
11+
* [2.2.3](http://codeception.com/releases/2.2.3/codecept.phar), [for PHP 5.4 or 5.5](http://codeception.com/releases/2.2.3/php54/codecept.phar)
1112
* [2.2.2](http://codeception.com/releases/2.2.2/codecept.phar), [for PHP 5.4 or 5.5](http://codeception.com/releases/2.2.2/php54/codecept.phar)
1213
* [2.2.1](http://codeception.com/releases/2.2.1/codecept.phar), [for PHP 5.4 or 5.5](http://codeception.com/releases/2.2.1/php54/codecept.phar)
1314

changelog.markdown

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,46 @@ title: Codeception Changelog
77

88
# Changelog
99

10+
#### 2.2.3
11+
12+
* **[Yii2]** Improvements:
13+
* Added `init` part to initialize Yii app for unit and acceptance testing.
14+
* added `entryScript` and `entryUrl` config values for acceptance testing.
15+
* Fixtures support: `haveFixtures`, `grabFixtures` methods.
16+
* Yii logs to be printed in debug mode.
17+
* added `amOnRoute` method.
18+
* added `amloggedInAs` method.
19+
* added `grabComponent` method.
20+
* added `seeEmailIsSent`, `grabLastSentEmail`, etc and email part.
21+
* assetManager disabled for unit/functional tests.
22+
* Fixed `@example` to `@group` defined in group files. By **[eXorus](https://github.com/eXorus)**. Fixes [#3278](https://github.com/Codeception/Codeception/issues/3278)
23+
* Fixed timing values in output. Closes [#3331](https://github.com/Codeception/Codeception/issues/3331)
24+
* Fixed merging module configs. Closes [#3292](https://github.com/Codeception/Codeception/issues/3292)
25+
* [Recorder Extension] Fixes saving of files on windows and with using examples.
26+
* **[DataFactory]** Fixed loading factories twice by **[samusenkoiv](https://github.com/samusenkoiv)**. See [#3314](https://github.com/Codeception/Codeception/issues/3314)
27+
* **[Laravel5]** Added `run_database_migrations` configuration option. By **[janhenkgerritsen](https://github.com/janhenkgerritsen)**.
28+
* **[Laravel5]** Added `callArtisan` method. By **[janhenkgerritsen](https://github.com/janhenkgerritsen)**.
29+
* **[Laravel5]** Added `disableModelEvents()` method and `disable_model_events` configuration option. Fixes [#2897](https://github.com/Codeception/Codeception/issues/2897).
30+
* **[REST]** Allow objects in files array [#3298](https://github.com/Codeception/Codeception/issues/3298)
31+
* **[ZF2]** Added addServiceToContainer method
32+
* **[ZendExpressive]** allow instances of UploadedFile in files array
33+
* **[ZF2]** Added addServiceToContainer method
34+
* Don't fail test validation when exec function is disabled by **[Naktialda](https://github.com/Naktialda)**
35+
1036
#### 2.2.2
1137

1238
* Parameters can be applied to global `codeception.yml` config. See [#3255](https://github.com/Codeception/Codeception/issues/3255) Thanks to **[LeRondPoint](https://github.com/LeRondPoint)**
1339
* Fixed loading of parameters from `.env.*` files. See [#3224](https://github.com/Codeception/Codeception/issues/3224). By **[smotesko](https://github.com/smotesko)**
1440
* Better failure diff messages by **[k0pernikus](https://github.com/k0pernikus)**
1541
* UTF-8 improvements (replaced with custom `ucfirst`, `strtoupper` => `mb_strtoupper`) by **[Naktibalda](https://github.com/Naktibalda)**. See [#3211](https://github.com/Codeception/Codeception/issues/3211)
1642
* Print execution time of non-successful tests by **[Naktibalda](https://github.com/Naktibalda)**. Fixes [#3274](https://github.com/Codeception/Codeception/issues/3274)
17-
* *Test\Gherkin* Added support for multiple languages by **[dizzy7](https://github.com/dizzy7)**. See [#3203](https://github.com/Codeception/Codeception/issues/3203)
18-
* *Test\Gherkin* Added JUnit reporter [#3273](https://github.com/Codeception/Codeception/issues/3273)
19-
* *Test\Unit* Dependencies can pass and receive values the same way as it is done in PHPUnit. Fixes [#3213](https://github.com/Codeception/Codeception/issues/3213)
2043
* [WebDriver][PhpBrowser][Frameworks] Fixed created files on failure. Fixes [#3207](https://github.com/Codeception/Codeception/issues/3207)
2144
* [Frameworks][PhpBrowser] Adjacent forms submit improvements by **[dizzy7](https://github.com/dizzy7)**. Fixes [#2331](https://github.com/Codeception/Codeception/issues/2331)
2245
* **[WebDriver]** Fixed adjacent `selectOption` with similar options by **[eXorus](https://github.com/eXorus)**. Fixes [#3246](https://github.com/Codeception/Codeception/issues/3246)
2346
* **[DataFactory]** fixed loading factories from relative paths. Fixes [#3208](https://github.com/Codeception/Codeception/issues/3208)
47+
* *Test\Gherkin* Added JUnit reporter [#3273](https://github.com/Codeception/Codeception/issues/3273)
48+
* *Test\Gherkin* Added support for multiple languages by **[dizzy7](https://github.com/dizzy7)**. See [#3203](https://github.com/Codeception/Codeception/issues/3203)
49+
* *Test\Unit* Dependencies can pass and receive values the same way as it is done in PHPUnit. Fixes [#3213](https://github.com/Codeception/Codeception/issues/3213)
2450
* **[Symfony]** Fixed failing tests when the profiler is disabled by **[dizzy7](https://github.com/dizzy7)**. See [#3223](https://github.com/Codeception/Codeception/issues/3223)
2551
* **[REST]** Added `Codecepion\Util\HttpCode` util class with HTTP code constants. See [class reference](https://github.com/Codeception/Codeception/blob/2.2/docs/reference/HttpCode.md)
2652
* **[REST]** Support simple key-value format for file uploads. See [#3244](https://github.com/Codeception/Codeception/issues/3244)
@@ -54,6 +80,7 @@ title: Codeception Changelog
5480
* `codecept dry-run` command added to show scenario steps without executing them.
5581
* *Breaking* **[Dbh]** module removed
5682
* *Breaking* **[Laravel4]** module removed. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
83+
* *Breaking* **[Laravel5]** Minimum supported Laravel version is 5.1. See [[#3243](https://github.com/Codeception/Codeception/issues/3243)](https://github.com/Codeception/Codeception/issues/3243#issuecomment-227078266)
5784
* *Breaking* **[Laravel5]** Removed `createModel` method, use `have` method instead. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
5885
* *Breaking* **[Laravel5]** Removed `makeModel` method. See [#2866](https://github.com/Codeception/Codeception/issues/2866)
5986
* *Breaking* **[Laravel5]** Renamed `haveModel` method to `have`. See [#2866](https://github.com/Codeception/Codeception/issues/2866)

codecept.phar

22.3 KB
Binary file not shown.

docs/05-UnitTests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ To check your code for exception you can use `expectException` method from `Asse
376376
{% highlight php %}
377377

378378
<?php
379-
$t->expectException(new Exception, {
379+
$t->expectException(Exception::class, function() {
380380
throw new Exception;
381381
});
382382

docs/06-ReusingTestCode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Let's improve code of our `login` method by making it executed only once for the
148148

149149
{% endhighlight %}
150150

151-
Please note that session restoration only works for `WebDriver` and `PhpBrowser` modules (modules implementing `Codeception\Lib\Interfaces\SessionSnapshot`)
151+
Please note that session restoration only works for `WebDriver` module (modules implementing `Codeception\Lib\Interfaces\SessionSnapshot`)
152152

153153
## StepObjects
154154

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