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'); }
protected function registerBehavior(Behavior $behavior) { $behavior->setTable($this); }