mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Replace assertion with type
This commit is contained in:
parent
6c7d1b4e64
commit
365236a6bb
@ -13,7 +13,7 @@ class TypeCombinationTest extends TestCase
|
||||
* @dataProvider providerTestValidTypeCombination
|
||||
*
|
||||
* @param string $expected
|
||||
* @param list<string> $types
|
||||
* @param non-empty-list<string> $types
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@ -27,8 +27,6 @@ class TypeCombinationTest extends TestCase
|
||||
$converted_types[] = $converted_type;
|
||||
}
|
||||
|
||||
$this->assertNotEmpty($converted_types);
|
||||
|
||||
$this->assertSame(
|
||||
$expected,
|
||||
(string) TypeCombination::combineTypes($converted_types)
|
||||
@ -62,7 +60,7 @@ class TypeCombinationTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string,array{string,list<string>}>
|
||||
* @return array<string,array{string,non-empty-list<string>}>
|
||||
*/
|
||||
public function providerTestValidTypeCombination()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user