|
From: Dan Yi <dy...@ha...> - 2008-12-17 08:14:35
|
hi, all
i have a php file "getfile.php" that need to test. i also create an simple test file and include that file as below:
<?php
require_once("getfile.php");
class TestOfFileFunctions extends UnitTestCase {
function test_pass() {
$x = 1;
$y = 2;
$total = $x + $y;
$this->assertEqual(3, $total, "This should pass");
}
}
?>
problem is getfile.php requires pass 2 parameters into it, when i run simpleTest again this above test file, it won't perform the test, instead it told me getfile.php need 2 parameters to pass into... how can i test it?
Thanks!!!
|