Skip to content

Commit

Permalink
Updated the driver for the Mink 2.0 API
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jan 23, 2015
1 parent 896e8a8 commit 137ed5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

"require": {
"php": ">=5.3.1",
"behat/mink": "~1.6@dev",
"behat/mink": "dev-2-architecture-changes",
"symfony/browser-kit": "~2.0",
"symfony/dom-crawler": "~2.0"
},
Expand Down
13 changes: 1 addition & 12 deletions src/Behat/Mink/Driver/BrowserKitDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

namespace Behat\Mink\Driver;

use Behat\Mink\Element\NodeElement;
use Behat\Mink\Exception\DriverException;
use Behat\Mink\Exception\UnsupportedDriverActionException;
use Behat\Mink\Session;
use Symfony\Component\BrowserKit\Client;
use Symfony\Component\BrowserKit\Cookie;
use Symfony\Component\BrowserKit\Request;
Expand All @@ -36,7 +34,6 @@
*/
class BrowserKitDriver extends CoreDriver
{
private $session;
private $client;

/**
Expand Down Expand Up @@ -74,14 +71,6 @@ public function getClient()
return $this->client;
}

/**
* {@inheritdoc}
*/
public function setSession(Session $session)
{
$this->session = $session;
}

/**
* Tells driver to remove hostname from URL.
*
Expand Down Expand Up @@ -351,7 +340,7 @@ public function find($xpath)

$elements = array();
foreach ($nodes as $i => $node) {
$elements[] = new NodeElement(sprintf('(%s)[%d]', $xpath, $i + 1), $this->session);
$elements[] = sprintf('(%s)[%d]', $xpath, $i + 1);
}

return $elements;
Expand Down

0 comments on commit 137ed5c

Please sign in to comment.