Merge remote branch 'upstream/master'

This commit is contained in:
Victor Saisa Lopez
2012-07-13 18:42:23 -04:00
4 changed files with 94 additions and 88 deletions

View File

@@ -1,4 +1,5 @@
<?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';
@@ -12,9 +13,9 @@ require_once PATH_TRUNK . 'workflow/engine/classes/class.dynaformEditor.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:31.
*/
class classdynaformEditorTest extends PHPUnit_Framework_TestCase
{
/**
* @var dynaformEditor
*/
@@ -26,7 +27,7 @@ class classdynaformEditorTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new dynaformEditor();
$this->object = new dynaformEditor('getvalue');
}
/**
@@ -35,6 +36,7 @@ class classdynaformEditorTest extends PHPUnit_Framework_TestCase
*/
protected function tearDown()
{
}
/**
@@ -43,7 +45,8 @@ class classdynaformEditorTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('dynaformEditor'); $this->assertTrue( count($methods) == 10);
$methods = get_class_methods('dynaformEditor');
$this->assertTrue(count($methods) == 10);
}
/**
@@ -162,5 +165,5 @@ class classdynaformEditorTest extends PHPUnit_Framework_TestCase
$this->assertTrue($params[1]->isArray() == false);
$this->assertTrue($params[1]->isOptional() == false);
}
}

View File

@@ -26,7 +26,7 @@ class classgzip_fileTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new gzip_file();
$this->object = new gzip_file('name');
}
/**
@@ -43,7 +43,8 @@ class classgzip_fileTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('gzip_file'); $this->assertTrue( count($methods) == 18);
$methods = get_class_methods('gzip_file');
$this->assertTrue( count($methods) == 18);
}
/**
@@ -84,5 +85,5 @@ class classgzip_fileTest extends PHPUnit_Framework_TestCase
$r = new ReflectionMethod('gzip_file', 'open_archive');
$params = $r->getParameters();
}
}

View File

@@ -26,7 +26,7 @@ class classstepDetailTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new stepDetail();
$this->object = new stepDetail('nameSpace', 'stepId', 'stepName', 'stepTitle', 'setupStepPage');
}
/**
@@ -43,7 +43,8 @@ class classstepDetailTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('stepDetail'); $this->assertTrue( count($methods) == 1);
$methods = get_class_methods('stepDetail');
$this->assertTrue( count($methods) == 1);
}
/**
@@ -72,5 +73,5 @@ class classstepDetailTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[4]->isArray() == false);
$this->assertTrue( $params[4]->isOptional () == false);
}
}

View File

@@ -26,7 +26,7 @@ class classtar_fileTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new tar_file();
$this->object = new tar_file('name');
}
/**
@@ -43,7 +43,8 @@ class classtar_fileTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('tar_file'); $this->assertTrue( count($methods) == 16);
$methods = get_class_methods('tar_file');
$this->assertTrue( count($methods) == 16);
}
/**
@@ -96,5 +97,5 @@ class classtar_fileTest extends PHPUnit_Framework_TestCase
$r = new ReflectionMethod('tar_file', 'open_archive');
$params = $r->getParameters();
}
}