Merge pull request #249 from marcoAntonioNina/master
PhpUnit classPmTableTest.php
This commit is contained in:
@@ -43,7 +43,8 @@ class classPmTableTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function testNumberOfMethodsInThisClass()
|
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]->getName() == 'tablesList');
|
||||||
$this->assertTrue( $params[1]->isArray() == false);
|
$this->assertTrue( $params[1]->isArray() == false);
|
||||||
$this->assertTrue( $params[1]->isOptional () == true);
|
$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()
|
public function testgetPropelSupportedColumnTypes()
|
||||||
{
|
{
|
||||||
$methods = get_class_methods($this->object);
|
$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');
|
$r = new ReflectionMethod('PmTable', 'getPropelSupportedColumnTypes');
|
||||||
$params = $r->getParameters();
|
$params = $r->getParameters();
|
||||||
}
|
}
|
||||||
@@ -406,11 +408,11 @@ class classPmTableTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertTrue( $params[2]->getName() == 'options');
|
$this->assertTrue( $params[2]->getName() == 'options');
|
||||||
$this->assertTrue( $params[2]->isArray() == false);
|
$this->assertTrue( $params[2]->isArray() == false);
|
||||||
$this->assertTrue( $params[2]->isOptional () == true);
|
$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]->getName() == 'verbose');
|
||||||
$this->assertTrue( $params[3]->isArray() == false);
|
$this->assertTrue( $params[3]->isArray() == false);
|
||||||
$this->assertTrue( $params[3]->isOptional () == true);
|
$this->assertTrue( $params[3]->isOptional () == true);
|
||||||
$this->assertTrue( $params[3]->getDefaultValue() == '1');
|
$this->assertTrue( $params[3]->getDefaultValue() == '1');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user