Little refactoring of Install Module, created Pivip_Db_Table_Abstract.
[pivip.git] / specifications / library / Pivip / Db / Table / TableModelsSpec.php
blobdeeeaf25e607ce499534b7b68a25a7f489651ed3
1 <?php
3 require_once 'library/Pivip/Db/Table/Abstract.php';
5 class DescribeTableModels extends PHPSpec_Context
7 public function itShouldDefaultTheTableNameToTheLowercasedClassName()
9 $fakeModel = new FakeTable();
10 $this->spec($fakeModel->getName)->should()->beEqualTo('faketable');
14 class FakeTable extends Pivip_Db_Table_Abstract
16 public function getName()
18 return $this->_name;