public function testPrimaryStringAddConfiguredColumn() { $this->assertFalse($this->tmap->hasPrimaryStringColumn(), 'hasPrimaryStringColumn() returns false while none set.'); $column = new ColumnMap('BAR', $this->tmap); $column->setPhpName('Bar'); $column->setType('VARCHAR'); $column->setPrimaryString(true); $this->tmap->addConfiguredColumn($column); $this->assertTrue($this->tmap->hasPrimaryStringColumn(), 'hasPrimaryStringColumn() returns true after adding pkStr column.'); $this->assertEquals($column, $this->tmap->getPrimaryStringColumn(), 'getPrimaryStringColumn() returns correct column.'); }