fixing all automated test units

This commit is contained in:
Fernando
2012-07-14 02:45:21 -04:00
parent 5f075bbaa8
commit a6250f3840
4 changed files with 9 additions and 9 deletions

View File

@@ -45,8 +45,8 @@ class classPMExceptionTest extends PHPUnit_Framework_TestCase
public function testNumberOfMethodsInThisClass()
{
$class = new ReflectionClass('PMException');
$methods = $class->getMethods();
$this->assertTrue( count($methods) == 10);
$methods = $class->getMethods( ReflectionMethod::IS_PUBLIC );
$this->assertTrue( count($methods) == 9);
}
/**

View File

@@ -44,8 +44,8 @@ class classApplicationWithoutDelegationRecordsExceptionTest extends PHPUnit_Fram
public function testNumberOfMethodsInThisClass()
{
$class = new ReflectionClass('ApplicationWithoutDelegationRecordsException');
$methods = $class->getMethods();
$this->assertTrue( count($methods) == 10);
$methods = $class->getMethods(ReflectionMethod::IS_PUBLIC);
$this->assertTrue( count($methods) == 9);
}
/**

View File

@@ -44,8 +44,8 @@ class classInvalidIndexSearchTextExceptionTest extends PHPUnit_Framework_TestCas
public function testNumberOfMethodsInThisClass()
{
$class = new ReflectionClass('ApplicationWithoutDelegationRecordsException');
$methods = $class->getMethods();
$this->assertTrue( count($methods) == 10);
$methods = $class->getMethods(ReflectionMethod::IS_PUBLIC);
$this->assertTrue( count($methods) == 9);
}
/**

View File

@@ -43,9 +43,9 @@ class classXMLResultTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$class = new ReflectionClass('ApplicationWithoutDelegationRecordsException');
$methods = $class->getMethods();
$this->assertTrue( count($methods) == 10);
$class = new ReflectionClass('XMLResult');
$methods = $class->getMethods(ReflectionMethod::IS_PUBLIC);
$this->assertTrue( count($methods) == 3);
}
/**