Replace use of assertType with assertInternalType and assertInstanceOf
authoraude <aude.wiki@gmail.com>
Thu, 9 Apr 2015 04:53:37 +0000 (00:53 -0400)
committeraude <aude.wiki@gmail.com>
Thu, 9 Apr 2015 05:15:44 +0000 (01:15 -0400)
commit851552a5c4d37223e699c6196be4e8f7e8974c90
treebd68f561bdea244b53585de9fe2b65f0a0e1f2d9
parent4665ea46651be9194b0435a50b981157dd7079f4
Replace use of assertType with assertInternalType and assertInstanceOf

These are available in phpunit since 3.5.0, which I think
is reasonable to expect people to have at this point,
especially when we actually require 3.7.0 or higher in phpunit.php:

Use assertSame instead of assertArrayEquals in UIDGeneratorTest.
assertSame (and assertEqual) care about sortorder of the array,
and is perfectly sufficient in this case to check they array is correct.

if ( $puVersion !== '@package_version@' && version_compare( $puVersion, '3.7.0', '<' ) ) {
        die( "PHPUnit 3.7.0 or later required; you have {$puVersion}.\n" );
}

Change-Id: Ic32ab45110e4c4304ef046ae8d0e98c741255559
tests/phpunit/includes/api/query/ApiQueryTestBase.php
tests/phpunit/includes/filebackend/FileBackendTest.php
tests/phpunit/includes/json/FormatJsonTest.php
tests/phpunit/includes/utils/UIDGeneratorTest.php