Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit cf15a3a

Browse files
committed
Merge pull request #113 from stof/prepare_release
Prepare release
2 parents dd97d91 + d713573 commit cf15a3a

File tree

3 files changed

+43
-11
lines changed

3 files changed

+43
-11
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
1.2.0 / 2014-09-26
2+
==================
3+
4+
BC break:
5+
6+
* Rewrote the driver based on Zombie 2.0 rather than the old 1.x versions
7+
* Changed the behavior of `getValue` for checkboxes according to the BC break in Mink 1.6
8+
9+
New features:
10+
11+
* Added the support of select elements in `setValue`
12+
* Implemented `getOuterHtml`
13+
* Added support for request headers
14+
* Implemented `submitForm`
15+
* Implemented `isSelected`
16+
17+
Bug fixes:
18+
19+
* Fixed the selection of options for multiple selects to ensure the change event is triggered only once
20+
* Fixed the selection of options for radio groups
21+
* Fixed `getValue` for radio groups
22+
* Fixed the retrieval of response headers
23+
* Fixed a leak of outdated references in the node server when changing page
24+
* Fixed the resetting of the driver to reset everything
25+
* Fixed the code to throw exceptions for invalid usages of the driver
26+
* Fixed handling of errors to throw exceptions in the driver rather than crashing the node server
27+
* Fixed `evaluateScript` and `executeScript` to support all syntaxes required by the Mink API
28+
* Fixed `getContent` to return the source of the page without decoding entities
29+
* Fixed the removal of cookies
30+
* Fixed the basic auth implementation
31+
32+
Testing:
33+
34+
* Updated the testsuite to use the new Mink 1.6 driver testsuite
35+
* Added testing on HHVM

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,28 @@ You need a working installation of [NodeJS](http://nodejs.org/) and
2020
npm install -g zombie
2121
```
2222

23-
There are some compatibility issues with older versions of zombie.js.
24-
Some are more or less PHP specific and kinda hard to resolve. If you
25-
want to be 100% on the safe side, please use __version 2.0.0-alpha1 or
26-
higher__.
23+
The driver requires zombie.js __version 2.0.0 or higher__.
2724

2825
Use [Composer](https://getcomposer.org/) to install all required PHP dependencies:
2926

30-
``` json
27+
```json
3128
{
3229
"require": {
33-
"behat/mink": "~1.5",
34-
"behat/mink-zombie-driver": "~1.1"
30+
"behat/mink": "~1.6",
31+
"behat/mink-zombie-driver": "~1.2"
3532
}
3633
}
3734
```
3835

39-
``` bash
36+
```bash
4037
$> curl -sS https://getcomposer.org/installer | php
4138
$> php composer.phar install
4239
```
4340

4441
Usage Example
4542
-------------
4643

47-
``` php
44+
```php
4845
<?php
4946

5047
use Behat\Mink\Mink,

src/Behat/Mink/Driver/NodeJS/Server/ZombieServer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ protected function getServerScript()
159159
return version_compare(require('%modules_path%zombie/package').version, v2, op);
160160
};
161161
162-
if (false == zombieVersionCompare('2.0.0alpha1', '>=')) {
163-
throw new Error("Your zombie.js version is not compatible with this driver. Please use a version >= 2.0.0alpha1");
162+
if (false == zombieVersionCompare('2.0.0', '>=')) {
163+
throw new Error("Your zombie.js version is not compatible with this driver. Please use a version >= 2.0.0");
164164
}
165165
166166
net.createServer(function (stream) {

0 commit comments

Comments
 (0)