[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
vendor
/
level-2
/
dice
/
tests
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 TestData
SET
[ DEL ]
📄 BasicTest.php
5,916 B
SET
[ EDIT ]
|
[ DEL ]
📄 CallTest.php
2,584 B
SET
[ EDIT ]
|
[ DEL ]
📄 ChainTest.php
2,558 B
SET
[ EDIT ]
|
[ DEL ]
📄 ConstructParamsTest.php
3,932 B
SET
[ EDIT ]
|
[ DEL ]
📄 CreateArgsTest.php
2,858 B
SET
[ EDIT ]
|
[ DEL ]
📄 DiceTest.php
1,224 B
SET
[ EDIT ]
|
[ DEL ]
📄 NamedInstancesTest.php
3,624 B
SET
[ EDIT ]
|
[ DEL ]
📄 NamespaceTest.php
2,039 B
SET
[ EDIT ]
|
[ DEL ]
📄 ShareInstancesTest.php
3,755 B
SET
[ EDIT ]
|
[ DEL ]
📄 SubstitutionsTest.php
2,966 B
SET
[ EDIT ]
|
[ DEL ]
📄 bootstrap.php
344 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: DiceTest.php
<?php /* @description Dice - A minimal Dependency Injection Container for PHP * * @author Tom Butler tom@r.je * * @copyright 2012-2018 Tom Butler <tom@r.je> | https:// r.je/dice.html * * @license http:// www.opensource.org/licenses/bsd-license.php BSD License * * @version 3.0 */ abstract class DiceTest extends \PHPUnit\Framework\TestCase { protected $dice; public function __construct() { parent::__construct(); // spl_autoload_register(array($this, 'autoload')); //Load the test classes for this test $name = str_replace('Test', '', get_class($this)); require_once 'tests/TestData/Basic.php'; if (file_exists('tests/TestData/' . $name . '.php')) { require_once 'tests/TestData/' . $name . '.php'; } } public function autoload($class) { //If Dice Triggers the autoloader the test fails //This generally means something invalid has been passed to //a method such as is_subclass_of or dice is trying to construct //an object from something it shouldn't. $this->fail('Autoload triggered: ' . $class); } protected function setUp(): void { parent::setUp (); $this->dice = new \Dice\Dice(); } protected function tearDown(): void { $this->dice = null; parent::tearDown (); } }