Exemple #1
0
 public function testTable()
 {
     $b = new Behavior();
     $this->assertNull($b->getTable(), 'Behavior Table is null by default');
     $t = new Table();
     $t->setCommonName('fooTable');
     $b->setTable($t);
     $this->assertEquals($b->getTable(), $t, 'setTable() sets the name, and getTable() gets it');
 }
Exemple #2
0
 protected function registerBehavior(Behavior $behavior)
 {
     $behavior->setTable($this);
 }