Skip to content

Commit 3ab6ec0

Browse files
Extended the isAnyOf testcase
1 parent dbcebbc commit 3ab6ec0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/IsAnyOfTest.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,19 @@ public function is_any_of_returns_true_when_passing_the_same_value_but_separate_
3737
}
3838

3939
/** @test */
40-
public function is_any_of_returns_true_when_passing_multiple_values_of_which_one_equals_the()
40+
public function is_any_of_returns_true_when_passing_multiple_values_of_which_one_equals_the_base_enum()
4141
{
4242
$one = Sample123::create(1);
4343

4444
$this->assertTrue($one->isAnyOf(Sample123::ONE(), Sample123::TWO()));
4545
}
4646

47+
/** @test */
48+
public function is_any_of_returns_false_when_passing_nothing()
49+
{
50+
$this->assertFalse(Sample123::THREE()->isAnyOf());
51+
}
52+
4753
/** @test */
4854
public function is_none_of_returns_true_when_passing_nothing()
4955
{

0 commit comments

Comments
 (0)