Fix unit tests to support older versions of phpunit #179.

This commit is contained in:
Mikhail Golenkov
2020-02-10 12:53:52 +11:00
parent aadd7eaeee
commit b6f5db001a

View File

@@ -453,7 +453,7 @@ class maintenance_static_page_test extends auth_outage_base_testcase {
$generator = new maintenance_static_page_generator(new DOMDocument(), new maintenance_static_page_io());
$matches = $generator->get_urls_from_stylesheet($filecontent);
self::assertIsArray($matches);
self::assertInternalType('array', $matches);
self::assertCount(2, $matches);
self::assertCount($count, $matches[1]);
}