Skip to content

Commit 9817e68

Browse files
committed
Fix tests when executed outside of srcroot
Fixes running tests with pecl run-tests -p mongodb and on windows
1 parent e1f4c56 commit 9817e68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/standalone/result-toArray-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
--TEST--
22
MongoDB\Driver\Result::toArray()
33
--SKIPIF--
4-
<?php require "tests/utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
4+
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
55
--FILE--
66
<?php
7-
require_once "tests/utils/basic.inc";
7+
require_once __DIR__ . "/../utils/basic.inc";
88

99
$manager = new MongoDB\Driver\Manager(STANDALONE);
1010

tests/standalone/result-toArray-002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
--TEST--
22
MongoDB\Driver\Result::toArray() respects type map
33
--SKIPIF--
4-
<?php require "tests/utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
4+
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
55
--FILE--
66
<?php
7-
require_once "tests/utils/basic.inc";
7+
require_once __DIR__ . "/../utils/basic.inc";
88

99
class MyArrayObject extends ArrayObject implements BSON\Unserializable
1010
{

0 commit comments

Comments
 (0)