User:Mainframe98/Vagrant

This page describes how to do certain things on MediaWiki-Vagrant.

Running unit tests
I recommend creating a quick script:

Generating test coverage
I recommend creating a quick script: This will enable coverage for XDebug 3, allowing you to keep it disabled when not using coverage-related features.

Phan
Change the default vagrant memory size, as the default of 1.5G is insufficient to run phan. Do this by adding  to
 * You may replace 4096 with any higher value, as this is the new memory size of the vagrant box in megabytes.

You should now be able to run phan with /vagrant/mediawiki/vendor/bin/phan -d PATH_TO_SOMETHING -p

Simple runner
Save this in ~/phan.sh and invoke with ./phan.sh /vagrant/mediawiki.