REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 987 B
Close
/opt/cloudlinux/alt-php71/root/usr/share/pear/test/Structures_LinkedList/tests/link_001.phpt
Text
Base64
--TEST-- link_001: Test linked list constructed with an initial link --FILE-- <?php $dir = dirname(__FILE__); require 'Structures/LinkedList/Double.php'; require 'LinkTester.php'; $xyy = new Structures_LinkedList_Double($tester1); $xyy->appendNode($tester2); $xyy->appendNode($tester3); $xyy->appendNode($tester4); $link = $xyy->current(); print "Current: " . $link->getNumb() . "\n"; print "While: "; // test iteration with while() do { print $link->getNumb(); } while ($link = $xyy->next()); print "\nRewind: "; $link = $xyy->rewind(); print $link->getNumb(); print "\n"; print "Foreach: "; // test foreach() iteration foreach ($xyy as $bull) { print $bull->getNumb(); } print "\nEnd: "; $link = $xyy->end(); print $link->getNumb(); print "\n"; print "While (in reverse): "; // test iteration with while() do { print $link->getNumb(); } while ($link = $xyy->previous()); ?> --EXPECT-- Current: 1 While: 1234 Rewind: 1 Foreach: 1234 End: 4 While (in reverse): 4321
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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:28:59
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).