Skip to content

Commit 93382fd

Browse files
Merge pull request giorgiosironi#392 from paulbriton/2.x
Various updates
2 parents f4b406f + 3534129 commit 93382fd

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

.ci/setup.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
sudo apt-get update
4-
53
if [ ! -f "/usr/local/bin/composer" ]; then
64
echo "Installing Composer"
75
php -r "readfile('https://getcomposer.org/installer');" | sudo php -d apc.enable_cli=0 -- --install-dir=/usr/local/bin --filename=composer
@@ -23,6 +21,12 @@ sudo sed -i "s/^autostart=.*python-webserver$/autostart=true/" /etc/supervisor/c
2321
echo "Installing Firefox"
2422
sudo apt-get install firefox -y --no-install-recommends
2523

24+
echo "Installing Java 8"
25+
sudo apt-add-repository ppa:openjdk-r/ppa -y
26+
sudo apt-get update
27+
sudo apt-get install openjdk-8-jre-headless -y --no-install-recommends
28+
sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
29+
2630
if [ ! -f "$SELENIUM_JAR" ]; then
2731
echo "Downloading Selenium"
2832
sudo mkdir -p $(dirname "$SELENIUM_JAR")

.ci/vagrant_pre_setup.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ apt-get update
1111
apt-get install software-properties-common -y
1212
apt-get install python-software-properties -y
1313

14-
apt-add-repository ppa:ondrej/php5-5.6 -y
15-
apt-add-repository ppa:openjdk-r/ppa -y
14+
apt-add-repository ppa:ondrej/php -y
1615

1716
apt-get update
1817

1918
# installing xvfb, java and php
20-
apt-get install xvfb openjdk-8-jre-headless php5-cli php5-curl php5-xdebug ncurses-term unzip xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic vim -y --no-install-recommends
19+
apt-get install xvfb php5.6-cli php5.6-curl php5.6-xml php-xdebug ncurses-term unzip xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic vim -y --no-install-recommends
2120

PHPUnit/Extensions/Selenium2TestCase.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,4 +507,17 @@ public function setUpPage()
507507
{
508508

509509
}
510+
511+
/**
512+
* Check whether an alert box is present
513+
*/
514+
public function alertIsPresent()
515+
{
516+
try {
517+
$this->alertText();
518+
return TRUE;
519+
} catch (Exception $e) {
520+
return NULL;
521+
}
522+
}
510523
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
PHPUNIT-Selenium [![Build Status](https://api.travis-ci.org/giorgiosironi/phpunit-selenium.svg?branch=2.x)](https://travis-ci.org/giorgiosironi/phpunit-selenium/branches)
2+
-
13
This package contains a Selenium2TestCase class that can be used to run end-to-end tests against Selenium 2.
24

35
Installing

0 commit comments

Comments
 (0)