BUG 0000 Adjustment in te class classdashboardPageTest.php

- phpunit and phpcs tested in the class classdashboardPageTest.php
This commit is contained in:
Hector Cortez
2012-07-13 12:42:03 -04:00
parent 2084d04493
commit a456a7a41f

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.plugin.php';
/**
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:32.
*/
class classdashboardPageTest extends PHPUnit_Framework_TestCase
{
/**
* @var dashboardPage
*/
@@ -26,7 +27,7 @@ class classdashboardPageTest extends PHPUnit_Framework_TestCase
*/
protected function setUp()
{
$this->object = new dashboardPage();
$this->object = new dashboardPage('sNamespace', 'sPage', 'sName', 'sIcon');
}
/**
@@ -35,6 +36,7 @@ class classdashboardPageTest extends PHPUnit_Framework_TestCase
*/
protected function tearDown()
{
}
/**
@@ -43,7 +45,8 @@ class classdashboardPageTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('dashboardPage'); $this->assertTrue( count($methods) == 1);
$methods = get_class_methods('dashboardPage');
$this->assertTrue(count($methods) == 1);
}
/**
@@ -69,5 +72,5 @@ class classdashboardPageTest extends PHPUnit_Framework_TestCase
$this->assertTrue($params[3]->isArray() == false);
$this->assertTrue($params[3]->isOptional() == false);
}
}