Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

changes per our last conversation #1

Merged
merged 3 commits into from

2 participants

@perzeababa
  1. added verifyElementPresent for SeleniumRC
  2. fixed saunter.php error when using phpunit 3.6.x

the 3rd commit is just me pulling changes form your repo to mine dunno why github thinks i need to push this to you as well

@adamgoucher adamgoucher merged commit 9b2485d into Element-34:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 27, 2011
  1. @perzeababa

    added verifyElementPresent

    perzeababa authored
Commits on Nov 8, 2011
  1. @perzeababa

    removed references to PHP/CodeCoverage/Filter.php, this reference bre…

    perzeababa authored
    …aks when using phpunit 3.6.x
  2. @perzeababa
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 3 deletions.
  1. +8 −0 SaunterPHP/Framework/TestCase/RemoteControl.php
  2. +0 −3  saunter.php
View
8 SaunterPHP/Framework/TestCase/RemoteControl.php
@@ -69,6 +69,14 @@ public function verifyElementAvailable($element) {
}
}
}
+
+ public function verifyElementPresent($element) {
+ try {
+ $this->assertTrue(self::$selenium->isElementPresent($element), $element . ' element is not present.');
+ } catch (PHPUnit_Framework_AssertionFailedError $e) {
+ array_push(self::$verificationErrors, $e->toString());
+ }
+ }
public function verifyElementNotPresent($element) {
try {
View
3  saunter.php
@@ -91,9 +91,6 @@ function copy_logfile(&$log_name) {
* from phpunit that can be read at http://www.phpunit.de/manual/current/en/appendixes.copyright.html
*/
-require_once 'PHP/CodeCoverage/Filter.php';
-PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
-
if (strpos('/opt/local/bin/php', '@php_bin') === 0) {
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
}
Something went wrong with that request. Please try again.