<?php
require_once('RemoteConnect.php');
class RemoteConnectTest extends PHPUnit_Framework_TestCase
{
publicfunction setUp(){ }
publicfunction tearDown(){ }
publicfunction testConnectionIsValid()
{
// test to ensure that the object from an fsockopen is valid
$connObj=new RemoteConnect();
$serverName='';
$this->assertTrue($connObj->connectToServer($serverName) !==false);
}
}
?>
PHP单元测试利器 PHPUNIT初探第1/2页(2)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/d80710d27f8f0acfd473ee879822dc07.html