Created
June 13, 2014 09:37
-
-
Save andrewhl/09a18d1492350cc2d312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class_name: AcceptanceTester | |
modules: | |
enabled: | |
- PhpBrowser | |
- AcceptanceHelper | |
config: | |
PhpBrowser: | |
url: 'http://127.0.0.1:8000' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Failed to see the landing page in WelcomeCept.php (/Users/andrew/code/site/tests/acceptance/WelcomeCept.php) | |
Sorry, I couldn't am on page "/": | |
GuzzleHttp\Exception\RequestException: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. | |
Scenario Steps: | |
1. I am on page "/" | |
#1 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php:250 | |
#2 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php:84 | |
#3 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php:70 | |
#4 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:200 | |
#5 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Subscriber/Cookie.php:57 | |
#6 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Event/Emitter.php:105 | |
#7 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Event/RequestEvents.php:75 | |
#8 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Adapter/Curl/CurlAdapter.php:94 | |
#9 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Adapter/StreamingProxyAdapter.php:34 | |
#10 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Client.php:186 | |
#1 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php:250 | |
#2 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php:84 | |
#3 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php:70 | |
#4 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:200 | |
#5 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Subscriber/Cookie.php:57 | |
#6 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Event/Emitter.php:105 | |
#7 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Event/RequestEvents.php:75 | |
#8 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Adapter/Curl/CurlAdapter.php:94 | |
#9 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Adapter/StreamingProxyAdapter.php:34 | |
#10 /Users/andrew/code/site/vendor/guzzlehttp/guzzle/src/Client.php:186 | |
FAILURES! | |
Tests: 1, Assertions: 0, Errors: 1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$I = new AcceptanceTester($scenario); | |
$I->wantTo('see the landing page'); | |
$I->amOnPage('/'); | |
$I->see('Welcome'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi - was this posted as an issue?
If anyone is arriving here after getting the same error, then I think I found out why. If you run the test from your Vagrant machine (after sshing in) then the tests seem to work. But I get this when I run the tests from my host machine - this suggests i'm a massive idiot and am running the test in the wrong place
Feel a bit stupid really. Hope it helps someone else.