Exemplo n.º 1
0
 /**
  * Test for INNER JOIN clause.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function testInnerJoin()
 {
     $q = new PostgresqlQuery($this->dbo);
     $q2 = new PostgresqlQuery($this->dbo);
     $condition = 'foo ON foo.id = bar.id';
     $this->assertThat($q->innerJoin($condition), $this->identicalTo($q), 'Tests chaining.');
     $q2->join('INNER', $condition);
     $this->assertThat($q->join, $this->equalTo($q2->join), 'Tests that innerJoin is an alias for join.');
 }