{"id":249,"title":"phpunit\u5355\u5143\u6d4b\u8bd5\u4f8b\u5b50-\u65ad\u8a00","good":0,"bad":0,"hit":1963,"created_at":"2016-11-18 11:24:57","content":"
<?php
class hrTest extends PHPUnit_Framework_TestCase{
public function testEquals(){
$arr=array();
$this->assertEquals(1,count($arr),'\u503c\u4e0d\u76f8\u7b49');\/\/\u671f\u5f85\u76f8\u7b49
}
public function testEmpty(){
$str='\u4e0d\u4e3a\u7a7a';
$this->assertEmpty($str,'str\u503c\u4e0d\u4e3a\u7a7a');\/\/\u671f\u5f85\u4e3a\u7a7a\uff0c\u975e\u7a7a\u62a5\u9519
}
public function testNotEmpty(){
$str='';
$this->assertNotEmpty($str,'str\u503c\u4e3a\u7a7a');\/\/\u671f\u5f85\u975e\u7a7a
}
}<\/p>"}