This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

added test suite configuration

  • Loading branch information...
everzet committed May 29, 2012
1 parent c585a32 commit 9cc73b906c21f224c90bea71af07fcc06f20ce00
View
@@ -1,2 +1,4 @@
vendor
+composer.phar
composer.lock
+phpunit.xml
View
@@ -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>
@@ -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();
@@ -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
@@ -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');

0 comments on commit 9cc73b9

Please sign in to comment.