Skip to content

Commit

Permalink
fix error with phpunit10 (cannot override runBare())
Browse files Browse the repository at this point in the history
 Fatal error: Cannot override final method PHPUnit\Framework\TestCase::runBare() in tests/mocks/ci_testcase.php on line 351
  • Loading branch information
tenzap committed Jun 19, 2023
1 parent d393649 commit 43621f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/mocks/ci_testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function __construct($name = null, array $data = array(), $dataName = '')

public function setUp()
{
self::$ci_test_instance = $this;
// Setup VFS with base directories
$this->ci_vfs_root = vfsStream::setup('');
$this->ci_app_root = vfsStream::newDirectory('application')->at($this->ci_vfs_root);
Expand Down Expand Up @@ -347,11 +348,11 @@ public function ci_vfs_path($path, $base = '')
* happen in setUp, but someone is bound to forget to
* call the parent method and debugging this is no fun.
*/
public function runBare()
/*public function runBare()
{
self::$ci_test_instance = $this;
parent::runBare();
}
}*/

// --------------------------------------------------------------------

Expand Down

0 comments on commit 43621f2

Please sign in to comment.