aboutsummaryrefslogtreecommitdiffstats
path: root/tests/error_collector_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/error_collector_test.php')
-rw-r--r--tests/error_collector_test.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/error_collector_test.php b/tests/error_collector_test.php
index b92c4fa6bb..8ed89bbe52 100644
--- a/tests/error_collector_test.php
+++ b/tests/error_collector_test.php
@@ -11,10 +11,17 @@
*
*/
-require_once dirname(__FILE__) . '/../phpBB/includes/functions.php';
-
class phpbb_error_collector_test extends phpbb_test_case
{
+ public function setUp()
+ {
+ parent::setUp();
+
+ global $phpbb_filesystem;
+
+ $phpbb_filesystem = new \phpbb\filesystem\filesystem();
+ }
+
public function test_collection()
{
$collector = new \phpbb\error_collector(E_ALL | E_STRICT); // php set_error_handler() default
@@ -45,8 +52,8 @@ class phpbb_error_collector_test extends phpbb_test_case
1/0; $line = __LINE__;
// Cause a notice
- $array = array('ITEM' => 'value');
- $value = $array[ITEM]; $line2 = __LINE__;
+ $array = array(0 => 'value');
+ $value = $array[1]; $line2 = __LINE__;
$collector->uninstall();