Skip to content

Commit 6b5f56d

Browse files
committed
Unit-Tests: Removed last usage of deprecated func "assert_options"
1 parent a8e2071 commit 6b5f56d

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/MabeEnumTest/EnumTest.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ public function setUp(): void
3131
$this->resetStaticEnumProps();
3232
}
3333

34-
public function tearDown(): void
35-
{
36-
assert_options(ASSERT_ACTIVE, 1);
37-
}
38-
3934
/**
4035
* Un-initialize all known enumerations
4136
*/
@@ -331,14 +326,6 @@ public function testEnabledAssertAmbiguousEnumeratorValues(): void
331326
EnumAmbiguous::get('unknown');
332327
}
333328

334-
public function testDisabledAssertAmbiguousEnumeratorValues(): void
335-
{
336-
assert_options(ASSERT_ACTIVE, 0);
337-
$this->expectException(InvalidArgumentException::class);
338-
339-
EnumAmbiguous::get('unknown');
340-
}
341-
342329
public function testByNameAmbiguousEnumeratorValues(): void
343330
{
344331
$this->expectException(AssertionError::class);
@@ -355,14 +342,6 @@ public function testExtendedEnabledAssertAmbiguousEnumeratorValues(): void
355342
EnumExtendedAmbiguous::get('unknown');
356343
}
357344

358-
public function testExtendedDisabledAssertAmbiguousEnumeratorValues(): void
359-
{
360-
assert_options(ASSERT_ACTIVE, 0);
361-
$this->expectException(InvalidArgumentException::class);
362-
363-
EnumExtendedAmbiguous::get('unknown');
364-
}
365-
366345
public function testSingleton(): void
367346
{
368347
$enum1 = EnumBasic::get(EnumBasic::ONE);

0 commit comments

Comments
 (0)