/** * @dataProvider dataLeftJoin * * @param string $fromAlias * @param string $tableName * @param string $tableAlias * @param string $condition * @param array $expectedQueryPart * @param string $expectedQuery */ public function testLeftJoin($fromAlias, $tableName, $tableAlias, $condition, $expectedQueryPart, $expectedQuery) { $this->queryBuilder->from('data1', 'd1'); $this->queryBuilder->leftJoin($fromAlias, $tableName, $tableAlias, $condition); $this->assertSame($expectedQueryPart, $this->queryBuilder->getQueryPart('join')); $this->assertSame('SELECT FROM ' . $expectedQuery, $this->queryBuilder->getSQL()); }