Merge pull request #249 from marcoAntonioNina/master

PhpUnit classPmTableTest.php
This commit is contained in:
julceslauhub
2012-07-13 09:15:28 -07:00

View File

@@ -43,7 +43,8 @@ class classPmTableTest extends PHPUnit_Framework_TestCase
*/
public function testNumberOfMethodsInThisClass()
{
$methods = get_class_methods('PmTable'); $this->assertTrue( count($methods) == 26);
$methods = get_class_methods('PmTable');
$this->assertTrue( count($methods) == 26);
}
/**
@@ -320,7 +321,7 @@ class classPmTableTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[1]->getName() == 'tablesList');
$this->assertTrue( $params[1]->isArray() == false);
$this->assertTrue( $params[1]->isOptional () == true);
$this->assertTrue( $params[1]->getDefaultValue() == 'Array');
$this->assertTrue( $params[1]->getDefaultValue() == array());
}
/**
@@ -342,7 +343,8 @@ class classPmTableTest extends PHPUnit_Framework_TestCase
public function testgetPropelSupportedColumnTypes()
{
$methods = get_class_methods($this->object);
$this->assertTrue( in_array('getPropelSupportedColumnTypes', $methods ), 'exists method getPropelSupportedColumnTypes' );
$this->assertTrue( in_array('getPropelSupportedColumnTypes', $methods ),
'exists method getPropelSupportedColumnTypes' );
$r = new ReflectionMethod('PmTable', 'getPropelSupportedColumnTypes');
$params = $r->getParameters();
}
@@ -406,11 +408,11 @@ class classPmTableTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[2]->getName() == 'options');
$this->assertTrue( $params[2]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == true);
$this->assertTrue( $params[2]->getDefaultValue() == 'Array');
$this->assertTrue( $params[2]->getDefaultValue() == array());
$this->assertTrue( $params[3]->getName() == 'verbose');
$this->assertTrue( $params[3]->isArray() == false);
$this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '1');
}
}
}