With MediaWiki core and TitleBlacklist extensions, an extension test fails when run after some MediaWiki tests:
$ php phpunit.php --filter Api There was 1 failure: 1) ApiQueryTitleBlacklistTest::testCheckingBlackListedTitle Listed title returns error Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'blacklisted' +'ok' extensions/TitleBlacklist/tests/phpunit/ApiQueryTitleBlacklistTest.php:90
Standalone is OK:
$ php phpunit.php --filter ApiQueryTitleBlacklistTest Using PHP 5.6.29-0+deb8u1 PHPUnit 4.8.31 by Sebastian Bergmann and contributors. ...S.. Time: 3.81 seconds, Memory: 187.50MB OK, but incomplete, skipped, or risky tests! Tests: 6, Assertions: 9, Skipped: 1.