addTable('first'); $qb->addTable('second'); $qb->addTable('third'); $qb->addLeftJoin('second', 'fourth', 'fourth', 'second.foo=fourth.foo'); $this->assertEquals(['first', 'second', 'fourth', 'third'], array_keys($qb->from)); } }