Add new test for mail
This commit is contained in:
부모
9753938a2e
커밋
56e830aec6
1개의 변경된 파일과 13개의 추가작업 그리고 1개의 파일을 삭제
|
@ -12,7 +12,7 @@ require_once (dirname(__FILE__) . "/../sendtomail.php");
|
|||
|
||||
class MailTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testCheckConfiguration () {
|
||||
public function testCheckConfigurationOk () {
|
||||
global $config;
|
||||
|
||||
$this->assertFalse(checkConfiguration ());
|
||||
|
@ -53,4 +53,16 @@ class MailTest extends PHPUnit_Framework_TestCase
|
|||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
public function testCheckRequest () {
|
||||
$this->assertFalse (checkRequest (12, "a@a.com"));
|
||||
}
|
||||
|
||||
public function testCheckRequestNoData () {
|
||||
$this->assertStringStartsWith ("No", checkRequest (NULL, "a@a.com"));
|
||||
}
|
||||
|
||||
public function testCheckRequestNoEmail () {
|
||||
$this->assertStringStartsWith ("No", checkRequest (12, NULL));
|
||||
}
|
||||
|
||||
}
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue