File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33namespace Wikibase \DataModel \Tests \Entity ;
44
55use InvalidArgumentException ;
6- use MediaWikiUnitTestCase ;
76use ReflectionClass ;
87use Wikibase \DataModel \Entity \EntityId ;
98use Wikibase \DataModel \Entity \ItemId ;
2221 * @author Jeroen De Dauw < jeroendedauw@gmail.com >
2322 * @author John Erling Blad < jeblad@gmail.com >
2423 */
25- class EntityIdTest extends MediaWikiUnitTestCase {
24+ class EntityIdTest extends \ PHPUnit \ Framework \TestCase {
2625
2726 public static function instanceProvider () {
2827 $ ids = [];
Original file line number Diff line number Diff line change 33namespace Wikibase \DataModel \Tests \Entity ;
44
55use DataValues \IllegalValueException ;
6- use MediaWikiUnitTestCase ;
76use Wikibase \DataModel \Entity \EntityId ;
87use Wikibase \DataModel \Entity \EntityIdValue ;
98use Wikibase \DataModel \Entity \ItemId ;
2120 * @author Thiemo Kreuz
2221 * @author Daniel Kinzler
2322 */
24- class EntityIdValueTest extends MediaWikiUnitTestCase {
23+ class EntityIdValueTest extends \ PHPUnit \ Framework \TestCase {
2524
2625 public function testCanConstruct () {
2726 $ entityId = new ItemId ( 'Q123 ' );
@@ -152,9 +151,6 @@ public static function provideDeserializationCompatibility() {
152151 * @param EntityIdValue $expected
153152 */
154153 public function testDeserializationCompatibility ( $ serialized , EntityIdValue $ expected ) {
155- if ( str_contains ( $ serialized , 'C:32:"Wikibase\DataModel\Entity\ItemId" ' ) ) {
156- $ this ->expectDeprecationAndContinue ( '/::unserialize/ ' );
157- }
158154 $ id = unserialize ( $ serialized );
159155
160156 $ this ->assertEquals ( $ expected , $ id );
Original file line number Diff line number Diff line change 33namespace Wikibase \DataModel \Tests \Entity ;
44
55use InvalidArgumentException ;
6- use MediaWikiUnitTestCase ;
76use Wikibase \DataModel \Entity \ItemId ;
87
98/**
1514 * @license GPL-2.0-or-later
1615 * @author Jeroen De Dauw < jeroendedauw@gmail.com >
1716 */
18- class ItemIdTest extends MediaWikiUnitTestCase {
17+ class ItemIdTest extends \ PHPUnit \ Framework \TestCase {
1918
2019 /**
2120 * @dataProvider idSerializationProvider
Original file line number Diff line number Diff line change 33namespace Wikibase \DataModel \Tests \Entity ;
44
55use InvalidArgumentException ;
6- use MediaWikiUnitTestCase ;
76use Wikibase \DataModel \Entity \NumericPropertyId ;
87
98/**
1413 *
1514 * @license GPL-2.0-or-later
1615 */
17- class NumericPropertyIdTest extends MediaWikiUnitTestCase {
16+ class NumericPropertyIdTest extends \ PHPUnit \ Framework \TestCase {
1817
1918 /**
2019 * @dataProvider idSerializationProvider
You can’t perform that action at this time.
0 commit comments