Skip to content

Commit 141e1b8

Browse files
author
Ian Barber
committed
Fix some test related issues
Make tests set time and work from root. Fixed googleapis#365 and googleapis#367
1 parent decf9b4 commit 141e1b8

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎tests/BaseTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
18-
require_once realpath(dirname(__FILE__) . '/../autoload.php');
17+
require_once 'bootstrap.php';
18+
require_once 'Google/Client.php';
1919

2020
class BaseTest extends PHPUnit_Framework_TestCase {
21-
const KEY = "<YOUR_API_KEY>";
21+
const KEY = "";
2222
private $token;
2323
private $memcacheHost;
2424
private $memcachePort;

‎tests/bootstrap.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
2-
set_include_path(dirname(dirname(__FILE__)) . "/src"
3-
. PATH_SEPARATOR . get_include_path());
2+
set_include_path(dirname(__FILE__) . PATH_SEPARATOR .
3+
dirname(dirname(__FILE__)) . "/src". PATH_SEPARATOR .
4+
get_include_path());
5+
date_default_timezone_set('UTC');

0 commit comments

Comments
 (0)