The following error was thrown when running phpunit.php on a clean installation of MW:
[d0e08f33b510cc9f39a57c6f] [no req] Wikimedia\Rdbms\DBQueryError from line 1149 of /var/www/html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: INSERT INTO `unittest_revision` (rev_page,rev_text_id,rev_minor_edit,rev_user,rev_user_text,rev_timestamp,rev_deleted,rev_len,rev_parent_id,rev_sha1,rev_content_model,rev_content_format) VALUES ('1','1','0','1','UTSysop','20170916150250','0','9','0','aqhji8gcje5j0y511s7kgskw3dd6qua',NULL,NULL) Function: Revision::insertOn Error: 1364 Field 'rev_comment' doesn't have a default value (localhost) Backtrace: #0 /var/www/html/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #1 /var/www/html/includes/libs/rdbms/database/Database.php(1589): Wikimedia\Rdbms\Database->query(string, string) #2 /var/www/html/includes/Revision.php(1505): Wikimedia\Rdbms\Database->insert(string, array, string) #3 /var/www/html/includes/page/WikiPage.php(1873): Revision->insertOn(Wikimedia\Rdbms\DatabaseMysqli) #4 /var/www/html/includes/page/WikiPage.php(1627): WikiPage->doCreate(WikitextContent, integer, User, string, array) #5 /var/www/html/tests/phpunit/MediaWikiTestCase.php(1093): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User) #6 /var/www/html/tests/phpunit/MediaWikiTestCase.php(1341): MediaWikiTestCase->addCoreDBData() #7 /var/www/html/tests/phpunit/MediaWikiTestCase.php(419): MediaWikiTestCase->resetDB(Wikimedia\Rdbms\DatabaseMysqli, array) #8 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(722): MediaWikiTestCase->run(PHPUnit_Framework_TestResult) #9 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult) #10 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult) #11 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php(722): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult) #12 /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(440): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult) #13 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(149): PHPUnit_TextUI_TestRunner->doRun(PHPUnit_Framework_TestSuite, array) #14 /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php(100): PHPUnit_TextUI_Command->run(array, boolean) #15 /var/www/html/tests/phpunit/phpunit.php(133): PHPUnit_TextUI_Command::main() #16 /var/www/html/maintenance/doMaintenance.php(92): PHPUnitMaintClass->execute() #17 /var/www/html/tests/phpunit/phpunit.php(163): require(string) #18 {main} PHP Fatal error: Uncaught MWException: WikiPageTest::tearDown() must call parent::tearDown() in /var/www/html/tests/phpunit/MediaWikiTestCase.php:129 Stack trace: #0 [internal function]: MediaWikiTestCase->__destruct() #1 {main} thrown in /var/www/html/tests/phpunit/MediaWikiTestCase.php on line 129