Skip to content

Commit

Permalink
- Added Laravel 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dash8x committed Oct 9, 2024
1 parent da88230 commit 1b2a40a
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions tests/Unit/RevenueMonsterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,26 @@ public function setUp(): void
/** @test */
public function it_can_load_the_revenue_monster_sdk_using_app_make()
{
$this->expectException(ApiException::class);

$rm = App::make('rm');
try {
$rm = App::make('rm');
} catch (ApiException $e) {
$this->assertInstanceOf(ApiException::class, $e);
return;
}

$this->fail(sprintf('The expected "%s" exception was not thrown.', ApiException::class));
}

/** @test */
public function it_can_load_the_revenue_monster_sdk_using_facade()
{
$this->expectException(ApiException::class);

$rm = RevenueMonsterFacade::merchant();
try {
$rm = RevenueMonsterFacade::merchant();
} catch (ApiException $e) {
$this->assertInstanceOf(ApiException::class, $e);
return;
}

$this->fail(sprintf('The expected "%s" exception was not thrown.', ApiException::class));
}
}

0 comments on commit 1b2a40a

Please sign in to comment.