单元测试PHP文件

时间:2015-04-24 15:09:56

标签: php unit-testing testing unicode

我需要为我要上传的代码创建一个测试文件。

// Create connection

$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {

    die("Connection failed: " . $conn->connect_error);
} else {

    //echo "<Strong>Connection Successful</Strong>", "<br>" ;
}
?>

你能帮我为这个php代码创建一个测试文件吗?

0 个答案:

没有答案