Skip to content

Commit bfdb512

Browse files
authored
Auto loading phpunit class
to fix `PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found ` in php 7
1 parent 390b29a commit bfdb512

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/csrfprotector_test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
date_default_timezone_set('UTC');
3+
require_once 'PHPUnit/Autoload.php';
34
require_once __DIR__ .'/../libs/csrf/csrfprotector.php';
45

56
/**
@@ -439,4 +440,4 @@ public function testModCSRFPEnabledException()
439440
$this->assertTrue($temp == $_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0]);
440441
$this->assertTrue($temp == $_COOKIE[csrfprotector::$config['CSRFP_TOKEN']]);
441442
}
442-
}
443+
}

0 commit comments

Comments
 (0)