Commit Graph

15 Commits

Author SHA1 Message Date
Michal Čihař
fd1705f45e Simplify Template API
Remove some features we do not seem to use:

- helper functions (this never worked with Twig)
- per class context, it now has to be passed to render
- this avoids need of array_merge call on every render

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-02 16:37:57 +02:00
Maurício Meneghini Fauth
f8bd078088 Fix code standard errors
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-30 18:19:09 -03:00
Maurício Meneghini Fauth
c00245fa0a Move PMATestCase to PhpMyAdmin\Tests\PmaTestCase
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-30 16:34:53 -03:00
Maurício Meneghini Fauth
df30240015 Add namespace to test classes
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-20 13:03:50 -03:00
Maurício Meneghini Fauth
ca910e8de8 Move classes to PhpMyAdmin namespace
- Move Table to PhpMyAdmin namespace
- Move Template to PhpMyAdmin namespace
- Move ThemeManager to PhpMyAdmin namespace
- Move Theme to PhpMyAdmin namespace
- Move Tracker to PhpMyAdmin namespace
- Move Transformations to PhpMyAdmin namespace
- Move TypesMySQL to PhpMyAdmin namespace
- Move Types to PhpMyAdmin namespace
- Move Util to PhpMyAdmin namespace
- Move VersionInformation to PhpMyAdmin namespace
- Move Url to PhpMyAdmin namespace

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-07-08 10:54:21 -03:00
Maurício Meneghini Fauth
44d56123ba Add support for pgettext
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-03-30 14:01:34 -03:00
Maurício Meneghini Fauth
a2d64b8bda Add requested changes and add more tests
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-03-25 15:22:02 -03:00
Maurício Meneghini Fauth
53f93afe0c Add test for gettext
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-03-20 09:27:15 -03:00
Maurício Meneghini Fauth
4bbe23f1df Improve TemplateTest
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-03-19 18:00:24 -03:00
Michal Čihař
288995ba18 Remove trimming from template renderere
This relies on preg_replace correctly handles multibyte chars what is
not true on Windows and it then corrupts the content as it removers
parts of UTF-8 chars. Removal fixes occassional 200 errors on Windows.

Fixes #11705

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-12 15:35:38 +02:00
Atul Pratap Singh
e1a8fc758a Change some function names
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2016-01-18 11:25:41 +05:30
Atul Pratap Singh
8bdcd7d3c0 Fix template test case
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2016-01-16 17:00:32 +05:30
Atul Pratap Singh
b725916252 Add tests for template functions: setData, addData, addFunction
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2016-01-15 09:38:48 +05:30
Madhura Jayaratne
2b7cfb595d Move the rest of the tests related to objects under a common parent test
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-12-18 21:32:34 +11:00
Madhura Jayaratne
ab49273856 Rename test classes
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-10-15 20:57:27 +11:00