Example #1
0
 public function testAddExplicitConditionWithAlias()
 {
     $j = new Join();
     $j->addExplicitCondition('a', 'foo', 'Alias', 'b', 'bar', 'Blias');
     $this->assertEquals('=', $j->getOperator());
     $this->assertEquals('Alias.foo', $j->getLeftColumn());
     $this->assertEquals('Blias.bar', $j->getRightColumn());
     $this->assertEquals('a', $j->getLeftTableName());
     $this->assertEquals('b', $j->getRightTableName());
     $this->assertEquals('Alias', $j->getLeftTableAlias());
     $this->assertEquals('Blias', $j->getRightTableAlias());
 }