<?php
namespace Tests\Unit;use App\Domain\Transfers\Exceptions\IllegalTransition;use App\Domain\Transfers\TransferStateMachine;use App\Enums\TransferStatus;use App\Models\Transfer;use Mockery;use Tests\TestCase;
class TransferStateMachineTest extends TestCase {public function test_redeemed_to_issued_is_illegal():void{$t=Mockery::mock(Transfer::class)->makePartial();$t->status=TransferStatus::Redeemed;$this->expectException(IllegalTransition::class);app(TransferStateMachine::class)->transition($t,TransferStatus::Issued);}}
