1
0
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:
Matthew Brown 2020-01-29 23:55:27 -05:00
parent 6c7d1b4e64
commit 365236a6bb

View File

@ -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()
{