BUG 0000 Adjustment in te class classNETTest
- phpunit tested and phpcs.in the class classNETTest
This commit is contained in:
@@ -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.net.php';
|
||||
/**
|
||||
* Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:32.
|
||||
*/
|
||||
|
||||
class classNETTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var NET
|
||||
*/
|
||||
@@ -26,7 +27,7 @@ class classNETTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
$this->object = new NET();
|
||||
$this->object = new NET('192.168.11.21');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,6 +36,7 @@ class classNETTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,7 +45,8 @@ class classNETTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testNumberOfMethodsInThisClass()
|
||||
{
|
||||
$methods = get_class_methods('NET'); $this->assertTrue( count($methods) == 14);
|
||||
$methods = get_class_methods('NET');
|
||||
$this->assertTrue(count($methods) == 14);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -254,5 +257,5 @@ class classNETTest extends PHPUnit_Framework_TestCase
|
||||
$r = new ReflectionMethod('NET', 'getErrmsg');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user