Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added test suite configuration

  • Loading branch information...
commit 9cc73b906c21f224c90bea71af07fcc06f20ce00 1 parent c585a32
@everzet everzet authored
View
2  .gitignore
@@ -1,2 +1,4 @@
vendor
+composer.phar
composer.lock
+phpunit.xml
View
30 phpunit.xml.dist
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit backupGlobals="false"
+ backupStaticAttributes="false"
+ colors="false"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="false"
+ bootstrap="tests/bootstrap.php"
+>
+ <testsuites>
+ <testsuite name="Driver test suite">
+ <directory>./tests/Behat/Mink/Driver</directory>
+ </testsuite>
+ </testsuites>
+
+ <php>
+ <!--server name="WEB_FIXTURES_HOST" value="http://test.mink.dev" /-->
+ <!--server name="WEB_FIXTURES_BROWSER" value="firefox" /-->
+ </php>
+
+ <filter>
+ <whitelist>
+ <directory>./src/Behat/Mink/Driver</directory>
+ </whitelist>
+ </filter>
+</phpunit>
View
11 tests/Behat/Mink/Driver/NodeJS/ServerTest.php
@@ -2,7 +2,6 @@
namespace Tests\Behat\Mink\Driver\NodeJS;
-use Behat\Mink\PHPUnit\TestCase;
use Behat\Mink\Driver\NodeJS\Connection;
use Behat\Mink\Driver\NodeJS\Server as BaseServer;
@@ -24,16 +23,8 @@ protected function createTemporaryServer()
}
}
-class ServerTest extends TestCase
+class ServerTest extends \PHPUnit_Framework_TestCase
{
- public function setUp()
- {
- }
-
- public function tearDown()
- {
- }
-
public function testCreateServerWithDefaults()
{
$server = new TestServer();
View
7 tests/Behat/Mink/Driver/ZombieDriverTest.php
@@ -2,7 +2,8 @@
namespace Tests\Behat\Mink\Driver;
-use Behat\Mink\Driver\ZombieDriver;
+use Behat\Mink\Driver\ZombieDriver,
+ Behat\Mink\Driver\NodeJS\Server\ZombieServer;
/**
* @group zombiedriver
@@ -11,7 +12,9 @@ class ZombieDriverTest extends JavascriptDriverTest
{
protected static function getDriver()
{
- return new ZombieDriver();
+ $server = new ZombieServer('127.0.0.1', 8124, 'node');
+
+ return new ZombieDriver($server);
}
/**
View
10 tests/bootstrap.php
@@ -0,0 +1,10 @@
+<?php
+
+if (!is_dir($vendor = __DIR__.'/../vendor')) {
+ die('Install dependencies first');
+}
+
+require($vendor.'/autoload.php');
+require($vendor.'/behat/mink/tests/Behat/Mink/Driver/GeneralDriverTest.php');
+require($vendor.'/behat/mink/tests/Behat/Mink/Driver/HeadlessDriverTest.php');
+require($vendor.'/behat/mink/tests/Behat/Mink/Driver/JavascriptDriverTest.php');
Please sign in to comment.
Something went wrong with that request. Please try again.