public function testGuessFromColumn() { $assoc = new Phactory_Association_ManyToOne(new Phactory_Table('user')); $assoc->setFromTable(new Phactory_Table('post')); $this->assertEquals('user_id', $assoc->getFromColumn()); }