예제 #1
0
 public function testConstructDefaultBoth()
 {
     $col = new Column\Select('id', 'user');
     $this->assertEquals('user_id', $col->getUniqueId());
     $this->assertEquals('user', $col->getSelectPart1());
     $this->assertEquals('id', $col->getSelectPart2());
 }
예제 #2
0
 public function testSelectPart12()
 {
     $col = new Column\Select('id', 'user');
     $col->setSelect('id', 'user');
     $this->assertEquals('id', $col->getSelectPart1());
     $this->assertEquals('user', $col->getSelectPart2());
 }