1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

Dropped usage of now deprecated assertArraySubset

This commit is contained in:
Bruce Weirdan 2019-02-01 23:01:34 +02:00 committed by Matthew Brown
parent 45d61fc861
commit 36343b07ce
2 changed files with 7 additions and 14 deletions

View File

@ -59,12 +59,6 @@
</MissingConstructor>
<DeprecatedProperty errorLevel="suppress"/>
<DeprecatedMethod>
<errorLevel type="info">
<referencedMethod name="PHPUnit\Framework\Assert::assertArraySubset"/>
</errorLevel>
</DeprecatedMethod>
<UnusedParam>
<errorLevel type="suppress">
<directory name="examples"/>

View File

@ -59,10 +59,9 @@ class ComposerLockTest extends TestCase
'packages-dev' => [],
]));
$this->assertArraySubset(
['vendor/package' => 'Vendor\Package\PluginClass'],
$lock->getPlugins()
);
$plugins = $lock->getPlugins();
$this->assertArrayHasKey('vendor/package', $plugins);
$this->assertEquals('Vendor\Package\PluginClass', $plugins['vendor/package']);
}
/**
@ -85,10 +84,10 @@ class ComposerLockTest extends TestCase
],
],
]));
$this->assertArraySubset(
['vendor/package' => 'Vendor\Package\PluginClass'],
$lock->getPlugins()
);
$plugins = $lock->getPlugins();
$this->assertArrayHasKey('vendor/package', $plugins);
$this->assertEquals('Vendor\Package\PluginClass', $plugins['vendor/package']);
}
/**