SqlParser\Tests\Builder\SelectStatementTest::testBuilderAlias PHP Метод

testBuilderAlias() публичный Метод

public testBuilderAlias ( )
    public function testBuilderAlias()
    {
        $parser = new Parser('SELECT sgu.id, sgu.email_address FROM `sf_guard_user` sgu ' . 'RIGHT JOIN `student_course_booking` scb ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ' . 'ORDER BY scb.id DESC LIMIT 0,300');
        $stmt = $parser->statements[0];
        $this->assertEquals('SELECT  sgu.id, sgu.email_address FROM `sf_guard_user` AS `sgu` ' . 'RIGHT JOIN `student_course_booking` AS `scb` ON sgu.id = scb.user_id ' . 'WHERE `has_found_course` = \'1\' GROUP BY sgu.id ASC ' . 'ORDER BY scb.id DESC LIMIT 0, 300 ', $stmt->build());
    }