Newer
Older
sqlmarker / UsedCars / Test_classes / Feature / UsedCars_Test_Feature.php
  1. <?php
  2. require_once "Schema.php";
  3.  
  4. abstract class UsedCars_Test_Feature extends PHPUnit_Extensions_Database_TestCase_CreateTable
  5. {
  6. public function getTableName()
  7. {
  8. return 'FEATURE';
  9. }
  10. public function getColumnList()
  11. {
  12. return array(
  13. 'FEATURE_CODE' => array( 'generic_type' => 'TEXT',
  14. 'sql_type' => array( 'CHAR', 'VARCHAR2', 'VARCHAR' ),
  15. 'min_length' => 5,
  16. 'max_length' => 5,
  17. 'nullable' => false,
  18. 'test_value' => "AIRCN", ),
  19. 'DESCRIPTION' => array( 'generic_type' => 'TEXT',
  20. 'sql_type' => array( 'VARCHAR2', 'VARCHAR' ),
  21. 'min_length' => 100,
  22. 'nullable' => false,
  23. 'test_value' => "Air conditioning", ),
  24. );
  25. }
  26. public function getPKColumnList()
  27. {
  28. return array( 'FEATURE_CODE' );
  29. }
  30. public function getFKColumnList()
  31. {
  32. return array();
  33. }
  34. public function getUniqueColumnList()
  35. {
  36. return array();
  37. }
  38. }
  39. ?>