Skip to content

Commit

Permalink
Unit-Tests: Removed last usage of deprecated func "assert_options"
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe committed Oct 12, 2020
1 parent a8e2071 commit 6b5f56d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/MabeEnumTest/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ public function setUp(): void
$this->resetStaticEnumProps();
}

public function tearDown(): void
{
assert_options(ASSERT_ACTIVE, 1);
}

/**
* Un-initialize all known enumerations
*/
Expand Down Expand Up @@ -331,14 +326,6 @@ public function testEnabledAssertAmbiguousEnumeratorValues(): void
EnumAmbiguous::get('unknown');
}

public function testDisabledAssertAmbiguousEnumeratorValues(): void
{
assert_options(ASSERT_ACTIVE, 0);
$this->expectException(InvalidArgumentException::class);

EnumAmbiguous::get('unknown');
}

public function testByNameAmbiguousEnumeratorValues(): void
{
$this->expectException(AssertionError::class);
Expand All @@ -355,14 +342,6 @@ public function testExtendedEnabledAssertAmbiguousEnumeratorValues(): void
EnumExtendedAmbiguous::get('unknown');
}

public function testExtendedDisabledAssertAmbiguousEnumeratorValues(): void
{
assert_options(ASSERT_ACTIVE, 0);
$this->expectException(InvalidArgumentException::class);

EnumExtendedAmbiguous::get('unknown');
}

public function testSingleton(): void
{
$enum1 = EnumBasic::get(EnumBasic::ONE);
Expand Down

0 comments on commit 6b5f56d

Please sign in to comment.