summaryrefslogtreecommitdiffstats
path: root/tests/Utils/FormatterTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove left overs of old array syntaxWilliam Desportes2019-12-311-1/+1
| | | | Signed-off-by: William Desportes <williamdes@wdes.fr>
* Remove useless comments and annotationsMaurício Meneghini Fauth2019-12-141-4/+4
| | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
* Remove unnecessary string concatenationMaurício Meneghini Fauth2019-12-141-130/+130
| | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
* Reference classes via a use statementMaurício Meneghini Fauth2019-12-141-1/+2
| | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
* Fix merge conflicts for pull request #242Isaac Bennetch2019-05-091-0/+42
|\ | | | | | | Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
| * Recognize question mark as parameter, add formatter for parametersRadosław Kowalewski2019-04-191-0/+42
| |
* | Fix errors detected by PHPStan at level 0Maurício Meneghini Fauth2019-05-081-1/+1
| | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
* | Enable strict mode on PHP filesMaurício Meneghini Fauth2019-01-161-0/+1
| | | | | | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* | Apply phpmyadmin/coding-standardMaurício Meneghini Fauth2019-01-161-125/+124
|/ | | | Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
* Merge commit 'bb384a13abf5b8e96c2b50fef29e6be3b5ba9d04'Michal Čihař2017-05-171-16/+16
|\
| * Don't print duplicated cli formatting charactersDamian Dlugosz2017-05-171-16/+16
| |
* | Inline CREATE PROCEDUREDamian Dlugosz2017-05-161-6/+3
|/
* Improved format of INSERT queries.Dan Ungureanu2017-05-161-9/+3
| | | | Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
* Fix BEGIN/END indentationMichal Čihař2017-02-201-12/+12
| | | | | | Ensure we never have negative indentation Signed-off-by: Michal Čihař <michal@cihar.com>
* Inline JOINsDamian Dlugosz2017-02-161-0/+7
|
* Merge remote-tracking branch 'origin/pull/137'Michal Čihař2017-02-141-0/+9
|\
| * Apply cs fixesDamian Dlugosz2017-02-121-0/+7
| |
* | Order importsDamian Dlugosz2017-02-121-1/+1
|/
* Run php-cs-fixerMichal Čihař2017-02-061-85/+43
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Fix expected format for BEGIN/ENDMichal Čihař2017-02-061-6/+12
| | | | | | Issue #120 Signed-off-by: Michal Čihař <michal@cihar.com>
* Remove old tests and fix method names 'formatQueries' and 'testFormat'Damian Dlugosz2017-02-051-148/+3
|
* Testing typicalDamian Dlugosz2017-02-011-1/+46
|
* Fix test create tableDamian Dlugosz2017-02-011-7/+7
|
* Testing minimal and simplyDamian Dlugosz2017-02-011-6/+30
|
* Testing create tableDamian Dlugosz2017-02-011-1/+35
|
* Testing escaping cli and escaping htmlDamian Dlugosz2017-02-011-4/+36
|
* Testing string as aliasDamian Dlugosz2017-02-011-3/+15
|
* Testing distinct countDamian Dlugosz2017-02-011-0/+12
|
* Testing InsertDamian Dlugosz2017-02-011-6/+12
|
* Testing create procedureDamian Dlugosz2017-02-011-6/+42
|
* Testing keywordsDamian Dlugosz2017-02-011-1/+13
|
* Testing strip commentsDamian Dlugosz2017-02-011-11/+41
|
* Rebased on top of masterDamian Dlugosz2017-02-011-25/+17
|
* Testing commentsDamian Dlugosz2017-02-011-9/+31
|
* select with commentDamian Dlugosz2017-02-011-0/+13
|
* Begin writing new format queries testsDamian Dlugosz2017-02-011-13/+52
|
* Added PhpMyAdmin namespace prefix to follow PSR-4.Michal Čihař2017-01-231-4/+4
| | | | | | Fixes #126 Signed-off-by: Michal Čihař <michal@cihar.com>
* Fix comment parsingDamian Dlugosz2017-01-101-12/+24
|
* Fix comment parsingDamian Dlugosz2017-01-081-4/+2
|
* Fix indentation on html formatDamian Dlugosz2017-01-061-27/+33
|
* Apply php-cs-fixerDamian Dlugosz2017-01-061-12/+11
|
* Simplify rules mergingMichal Čihař2017-01-031-0/+6
| | | | | | | We first sanitize the merged array and we can later use it without checking. Signed-off-by: Michal Čihař <michal@cihar.com>
* Handling merging formats arraysDamian Dlugosz2016-12-301-0/+214
|
* Add tests for #83 and #84Michal Čihař2016-09-201-0/+10
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* fix default options in Formater constructorRemi Collet2016-09-131-34/+34
|
* Add test for formatting with indentationMichal Čihař2016-09-131-0/+17
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Add test for comments removalMichal Čihař2016-09-131-0/+6
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Allow to specify all options in testsMichal Čihař2016-09-131-12/+12
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Add test for comment highlightingMichal Čihař2016-09-131-0/+7
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Test console highligting of more complex queriesMichal Čihař2016-09-131-0/+5
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Do not use \e as it's not supported on PHP 5.3Michal Čihař2016-09-131-1/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Improve formatting of non indented groupsv3.4.2Michal Čihař2016-04-071-0/+13
| | | | | | | | We don't want to insert newlines insite non indented groups. Fixes #20 Signed-off-by: Michal Čihař <michal@cihar.com>
* Reset console formatting at the end of queryMichal Čihař2016-03-181-1/+1
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Test formatting for INSERTMichal Čihař2016-02-191-0/+10
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Test cli formatting as wellMichal Čihař2016-02-191-0/+5
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Allow to specify output type to format testMichal Čihař2016-02-191-7/+12
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Add formatter test for procedureMichal Čihař2016-02-191-0/+11
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Test formatting of comments in SQLMichal Čihař2016-02-191-0/+6
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Add more formatter testsMichal Čihař2016-02-191-0/+14
| | | | Signed-off-by: Michal Čihař <michal@cihar.com>
* Add very basic test for FormatterMichal Čihař2016-02-191-0/+32
There was none so far. Signed-off-by: Michal Čihař <michal@cihar.com>