98 lines
3.0 KiB
PHP
98 lines
3.0 KiB
PHP
|
|
<?php
|
||
|
|
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
|
||
|
|
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
|
||
|
|
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
|
||
|
|
require_once PATH_TRUNK . 'gulliver/system/class.mailer.php';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:39:54.
|
||
|
|
*/
|
||
|
|
|
||
|
|
class classmailerTest extends PHPUnit_Framework_TestCase
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @covers mailer::instanceMailer
|
||
|
|
* @todo Implement testinstanceMailer().
|
||
|
|
*/
|
||
|
|
public function testinstanceMailer()
|
||
|
|
{
|
||
|
|
if (class_exists('mailer')) {
|
||
|
|
$methods = get_class_methods( 'mailer');
|
||
|
|
$this->assertTrue( in_array( 'instanceMailer', $methods ), 'seems like this function is outside this class' );
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @covers mailer::arpaEMAIL
|
||
|
|
* @todo Implement testarpaEMAIL().
|
||
|
|
*/
|
||
|
|
public function testarpaEMAIL()
|
||
|
|
{
|
||
|
|
if (class_exists('mailer')) {
|
||
|
|
$methods = get_class_methods( 'mailer');
|
||
|
|
$this->assertTrue( in_array( 'arpaEMAIL', $methods ), 'seems like this function is outside this class' );
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @covers mailer::sendTemplate
|
||
|
|
* @todo Implement testsendTemplate().
|
||
|
|
*/
|
||
|
|
public function testsendTemplate()
|
||
|
|
{
|
||
|
|
if (class_exists('mailer')) {
|
||
|
|
$methods = get_class_methods( 'mailer');
|
||
|
|
$this->assertTrue( in_array( 'sendTemplate', $methods ), 'seems like this function is outside this class' );
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @covers mailer::sendHtml
|
||
|
|
* @todo Implement testsendHtml().
|
||
|
|
*/
|
||
|
|
public function testsendHtml()
|
||
|
|
{
|
||
|
|
if (class_exists('mailer')) {
|
||
|
|
$methods = get_class_methods( 'mailer');
|
||
|
|
$this->assertTrue( in_array( 'sendHtml', $methods ), 'seems like this function is outside this class' );
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @covers mailer::sendText
|
||
|
|
* @todo Implement testsendText().
|
||
|
|
*/
|
||
|
|
public function testsendText()
|
||
|
|
{
|
||
|
|
if (class_exists('mailer')) {
|
||
|
|
$methods = get_class_methods( 'mailer');
|
||
|
|
$this->assertTrue( in_array( 'sendText', $methods ), 'seems like this function is outside this class' );
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @covers mailer::replaceFields
|
||
|
|
* @todo Implement testreplaceFields().
|
||
|
|
*/
|
||
|
|
public function testreplaceFields()
|
||
|
|
{
|
||
|
|
if (class_exists('mailer')) {
|
||
|
|
$methods = get_class_methods( 'mailer');
|
||
|
|
$this->assertTrue( in_array( 'replaceFields', $methods ), 'seems like this function is outside this class' );
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @covers mailer::html2text
|
||
|
|
* @todo Implement testhtml2text().
|
||
|
|
*/
|
||
|
|
public function testhtml2text()
|
||
|
|
{
|
||
|
|
if (class_exists('mailer')) {
|
||
|
|
$methods = get_class_methods( 'mailer');
|
||
|
|
$this->assertTrue( in_array( 'html2text', $methods ), 'seems like this function is outside this class' );
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|