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:
parent
45d61fc861
commit
36343b07ce
@ -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"/>
|
||||
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user