Skip to content

Commit

Permalink
Merge pull request #113 from stof/prepare_release
Browse files Browse the repository at this point in the history
Prepare release
  • Loading branch information
stof committed Sep 26, 2014
2 parents dd97d91 + d713573 commit cf15a3a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 11 deletions.
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
1.2.0 / 2014-09-26
==================

BC break:

* Rewrote the driver based on Zombie 2.0 rather than the old 1.x versions
* Changed the behavior of `getValue` for checkboxes according to the BC break in Mink 1.6

New features:

* Added the support of select elements in `setValue`
* Implemented `getOuterHtml`
* Added support for request headers
* Implemented `submitForm`
* Implemented `isSelected`

Bug fixes:

* Fixed the selection of options for multiple selects to ensure the change event is triggered only once
* Fixed the selection of options for radio groups
* Fixed `getValue` for radio groups
* Fixed the retrieval of response headers
* Fixed a leak of outdated references in the node server when changing page
* Fixed the resetting of the driver to reset everything
* Fixed the code to throw exceptions for invalid usages of the driver
* Fixed handling of errors to throw exceptions in the driver rather than crashing the node server
* Fixed `evaluateScript` and `executeScript` to support all syntaxes required by the Mink API
* Fixed `getContent` to return the source of the page without decoding entities
* Fixed the removal of cookies
* Fixed the basic auth implementation

Testing:

* Updated the testsuite to use the new Mink 1.6 driver testsuite
* Added testing on HHVM
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,28 @@ You need a working installation of [NodeJS](http://nodejs.org/) and
npm install -g zombie
```

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

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

``` json
```json
{
"require": {
"behat/mink": "~1.5",
"behat/mink-zombie-driver": "~1.1"
"behat/mink": "~1.6",
"behat/mink-zombie-driver": "~1.2"
}
}
```

``` bash
```bash
$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar install
```

Usage Example
-------------

``` php
```php
<?php

use Behat\Mink\Mink,
Expand Down
4 changes: 2 additions & 2 deletions src/Behat/Mink/Driver/NodeJS/Server/ZombieServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ protected function getServerScript()
return version_compare(require('%modules_path%zombie/package').version, v2, op);
};
if (false == zombieVersionCompare('2.0.0alpha1', '>=')) {
throw new Error("Your zombie.js version is not compatible with this driver. Please use a version >= 2.0.0alpha1");
if (false == zombieVersionCompare('2.0.0', '>=')) {
throw new Error("Your zombie.js version is not compatible with this driver. Please use a version >= 2.0.0");
}
net.createServer(function (stream) {
Expand Down

0 comments on commit cf15a3a

Please sign in to comment.