Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Jan 10, 2025
1 parent 892bd09 commit a3501da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/MapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Fansipan\Tests;

use Fansipan\Contracts\MapperInterface;
use Fansipan\Exception\MapperException;
use Fansipan\Mock\MockClient;
use Fansipan\Mock\MockResponse;
use Fansipan\Tests\Services\DummyRequest;
Expand Down Expand Up @@ -48,6 +49,8 @@ public function test_decoder_is_not_mapper(): void

$this->assertNotInstanceOf(MapperInterface::class, $request->decoder());
$this->assertTrue($response->ok());
$this->assertNull($response->object());

$this->expectException(MapperException::class);
$response->object();
}
}

0 comments on commit a3501da

Please sign in to comment.