OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
php71
/
usr
/
share
/
pear
/
test
/
Structures_LinkedList
/
tests
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/16/2023 01:47:05 PM
rwxr-xr-x
📄
LinkTester.php
492 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
SingleLinkTester.php
462 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
link_001.phpt
987 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
link_002.phpt
675 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
link_003.phpt
1000 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
link_004.phpt
544 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
link_005.phpt
1.21 KB
12/02/2021 08:28:59 AM
rw-r--r--
📄
link_006.phpt
991 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
link_007.phpt
1.32 KB
12/02/2021 08:28:59 AM
rw-r--r--
📄
single_link_001.phpt
1000 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
single_link_002.phpt
688 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
single_link_003.phpt
1013 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
single_link_004.phpt
557 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
single_link_005.phpt
1.22 KB
12/02/2021 08:28:59 AM
rw-r--r--
📄
single_link_006.phpt
1004 bytes
12/02/2021 08:28:59 AM
rw-r--r--
📄
single_link_007.phpt
1.19 KB
12/02/2021 08:28:59 AM
rw-r--r--
Editing: link_005.phpt
Close
--TEST-- link_005: Pass different class types to constructors --FILE-- <?php $dir = dirname(__FILE__); require 'Structures/LinkedList/Double.php'; class TesterExtend extends Structures_LinkedList_DoubleNode { protected $_my_number; function __construct($tester, $num) { $this->_my_number = $num; parent::__construct($tester); } } class TesterFail { protected $summary; protected $fulltext; function __construct($summary, $fulltext) { $this->summary = $summary; $this->fulltext = $fulltext; } } // This should work: TesterExtend extends the Structure_LinkedList_DoubleNode class $tester_extend = new TesterExtend(null, 1); $xyy = new Structures_LinkedList_Double($tester_extend); print "Checking for errors in the expected success case:\n"; // This should fail print "Checking for errors in the expected failure case:\n"; $tester_fail = new TesterFail(null, 1); $xyy_fail = new Structures_LinkedList_Double($tester_fail); ?> --EXPECTF-- Checking for errors in the expected success case: Checking for errors in the expected failure case: %satal error: Argument 1 passed to Structures_LinkedList_Double::__construct() must be an instance of Structures_LinkedList_DoubleNode%s