/opt/alt/php71/usr/share/pear/test/Structures_LinkedList/tests
NameSizeModeActions
LinkTester.php4920644editdlrm
link_001.phpt9870644editdlrm
link_002.phpt6750644editdlrm
link_003.phpt10000644editdlrm
link_004.phpt5440644editdlrm
link_005.phpt12430644editdlrm
link_006.phpt9910644editdlrm
link_007.phpt13520644editdlrm
SingleLinkTester.php4620644editdlrm
single_link_001.phpt10000644editdlrm
single_link_002.phpt6880644editdlrm
single_link_003.phpt10130644editdlrm
single_link_004.phpt5570644editdlrm
single_link_005.phpt12500644editdlrm
single_link_006.phpt10040644editdlrm
single_link_007.phpt12180644editdlrm
Edit: /opt/alt/php71/usr/share/pear/test/Structures_LinkedList/tests/single_link_005.phpt (1250B)
--TEST-- single_link_005: Pass different class types to constructors --FILE-- _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_SingleNode class $tester_extend = new TesterExtend(null, 1); $xyy = new Structures_LinkedList_Single($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_Single($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_Single::__construct() must be an instance of Structures_LinkedList_SingleNode%s