Skip to content

Commit 9b6bd36

Browse files
committed
Fix tests
1 parent 49c1069 commit 9b6bd36

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ matrix:
44
include:
55
- php: 5.3
66
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=weak
7+
dist: precise
78
- php: 7.1
89
- php: 7.1
910
env: SYMFONY_VERSION='2.8.*'

Resources/js/run_jsunit.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ function waitFor(testFx, onReady, timeOutMillis) {
2121
}, 100); //< repeat check every 250ms
2222
}
2323

24-
if (phantom.args.length === 0) {
24+
var system = require('system');
25+
26+
if (system.args.length <= 1) {
2527
console.log('Usage: phantomjs run_jsunit.js <filepath>');
2628
phantom.exit();
2729
} else {
@@ -31,7 +33,7 @@ if (phantom.args.length === 0) {
3133
console.log(msg);
3234
};
3335

34-
page.open(phantom.args[0], function(status) {
36+
page.open(system.args[1], function(status) {
3537
if (status === 'success') {
3638
waitFor(function() {
3739
return page.evaluate(function() {

0 commit comments

Comments
 (0)