Skip to content

Commit f8c4a11

Browse files
committed
Add tests for boolean enum
1 parent 7c858b2 commit f8c4a11

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/EnumTest.php

+6
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,10 @@ public function testNullableEnum()
269269
$this->assertNull((new EnumFixture(EnumFixture::PROBLEMATIC_NULL))->getValue());
270270
$this->assertNull((new EnumFixture(EnumFixture::PROBLEMATIC_NULL))->jsonSerialize());
271271
}
272+
273+
public function testBooleanEnum()
274+
{
275+
$this->assertFalse(EnumFixture::PROBLEMATIC_BOOLEAN_FALSE()->getValue());
276+
$this->assertFalse((new EnumFixture(EnumFixture::PROBLEMATIC_BOOLEAN_FALSE))->jsonSerialize());
277+
}
272278
}

0 commit comments

Comments
 (0)