aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/autoload.ide.php
Commit message (Collapse)AuthorAgeFilesLines
* Miscellaneous indentation tweaksBartosz DziewoƄski2017-02-271-3/+6
| | | | | | | | | | I was bored. What? Don't look at me that way. I mostly targetted mixed tabs and spaces, but others were not spared. Note that some of the whitespace changes are inside HTML output, extended regexps or SQL snippets. Change-Id: Ie206cc946459f6befcfc2d520e35ad3ea3c0f1e0
* PHPUnit autoload file for PhpStormAleksey Bekh-Ivanov (WMDE)2017-01-311-0/+109
`autoload.ide.php` is PhpUnit entry point for PhpStorm IDE and other JetBrains IDEs. This file should be set in `Languages and frameworks > PHP > PhpUnit` select `Use Composer autoloader` and set `Path to script` to `tests/phpunit/autoload.ide.php` After that, tests can be run in PhpStorm using Right-click > Run or `Ctrl + Shift + F10`. Also, tests can be run with debugger. `autoload.ide.php` basically does almost the same thing as `tests/phpunit/phpunit.php`, except that all code is executed inside some function, so some hacks needed to make old code to be executed as if it was executed on top of the execution stack. PS: Mostly it is copy-paste from `phpunit.php` and `doMaintenance.php`. Change-Id: Idcee38d149542f747ed52c8c9491c6651a0581d9