REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.21 KB
Close
/opt/cloudlinux/alt-php80/root/usr/share/pear/test/Structures_LinkedList/tests/link_005.phpt
Text
Base64
--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
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
LinkTester.php
492 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_001.phpt
987 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_002.phpt
675 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_003.phpt
1000 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_004.phpt
544 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_005.phpt
1.21 KB
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_006.phpt
991 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_007.phpt
1.32 KB
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SingleLinkTester.php
462 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_001.phpt
1000 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_002.phpt
688 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_003.phpt
1013 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_004.phpt
557 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_005.phpt
1.22 KB
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_006.phpt
1004 B
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_007.phpt
1.19 KB
lrw-r--r--
2021-12-02 08:40:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).