phpcheck.democheckmethods.php Total: 23 Tests, 11 Errors ->first, ↻all
PHPCheck V1.66, OS: Linux, Machine: el8_10.x86_64, PHP-Version: 8.2.28 (64 Bit), Time: 0.007 ms (AVG: 0.000 ms), Memory: 2.0M (512M)
CommentLineCodeResultTest
check test Error 25 $result 100;
$testResult = ($result === 3.25);
$t->check($result$testResult); 
[0.000 ms]
100
Error
checkEqual Error, result is a string, not float 40 $result "3.25";
$expected 3.25;
$t->checkEqual($result$expected); 
[0.001 ms]
'3.25'
Error
checkNotEqual test Error 50 $result null;
$notExpected null;
$t->checkNotEqual($result$notExpected); 
[0.000 ms]
NULL
Error
checkEqualHex test Error 62 $result "test\n";
$expected "test\r\n";
$t->checkEqualHex($result$expected); 
[0.000 ms]
'74 65 73 74 0A'
Error
checkContains test Error 74 $result "A B C D E F";
$contains "A,CD";
$t->checkContains($result$contains); 
[0.000 ms]
'A B C D E F'
Error
checkHTML test Error invalid HTML 84 $result "<td class='c1'>123</tr>";
$t->checkHTML($result); 
User Warning: Ln:1 - Unexpected end tag : tr (phpcheck.php line 230)
[0.000 ms]
'<td class=\'c1\'>123</tr>'
Error
checkHTML test Error: class not c1 95 $result "<td class='other'>123</td>";
$contains "<td,class,c1,</td>";
$t->checkHTML($result$contains); 
[0.000 ms]
'<td class=\'other\'>123</td>'
Error
checkOutput Error 105 //startOutput used
echo 'Hello my world';
$t->checkOutput('Hello world'); 
[0.000 ms]
'Hello my world'
Error
check Exception: Error 118 $checkFct = function(){
  
//do nothing
};
$t->checkException($checkFct); 
[0.000 ms]
''
Error
check Exception and typ: Error 130 $checkFct = function(){
  throw new 
InvalidArgumentException;
};
$t->checkException($checkFct,'MyException'); 
[0.000 ms]
'Exception: InvalidArgumentException ""'
Error
checkMultipletest error 3 * 4 141 $expected 13;
$result myFunction(3,4); 
[0.000 ms]
12
Error