136 lines
4.2 KiB
PHP
136 lines
4.2 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/thirdparty/propel/Propel.php' ;
|
|
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php' ;
|
|
require_once PATH_TRUNK . 'workflow/engine/classes/class.memcached.php';
|
|
|
|
/**
|
|
* Generated by ProcessMaker Test Unit Generator on 2012-05-10 at 20:56:17.
|
|
*/
|
|
|
|
class classPMmemcachedTest extends PHPUnit_Framework_TestCase
|
|
{
|
|
/**
|
|
* @covers PMmemcached::__construct
|
|
* @todo Implement test__construct().
|
|
*/
|
|
public function test__construct()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( '__construct', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::getSingleton
|
|
* @todo Implement testgetSingleton().
|
|
*/
|
|
public function testgetSingleton()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'getSingleton', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::set
|
|
* @todo Implement testset().
|
|
*/
|
|
public function testset()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'set', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::get
|
|
* @todo Implement testget().
|
|
*/
|
|
public function testget()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'get', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::add
|
|
* @todo Implement testadd().
|
|
*/
|
|
public function testadd()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'add', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::increment
|
|
* @todo Implement testincrement().
|
|
*/
|
|
public function testincrement()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'increment', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::delete
|
|
* @todo Implement testdelete().
|
|
*/
|
|
public function testdelete()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'delete', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::flush
|
|
* @todo Implement testflush().
|
|
*/
|
|
public function testflush()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'flush', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::getStats
|
|
* @todo Implement testgetStats().
|
|
*/
|
|
public function testgetStats()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'getStats', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @covers PMmemcached::printDetails
|
|
* @todo Implement testprintDetails().
|
|
*/
|
|
public function testprintDetails()
|
|
{
|
|
if (class_exists('PMmemcached')) {
|
|
$methods = get_class_methods( 'PMmemcached');
|
|
$this->assertTrue( in_array( 'printDetails', $methods ), 'seems like this function is outside this class' );
|
|
}
|
|
}
|
|
|
|
}
|