@@ -38,7 +38,7 @@ public function testExternalNormal(): void
3838 ->perform ($ this ->doAction ());
3939$ stateMachine =$ builder ->build (self ::MACHINE_ID );
4040
41- $ target =$ stateMachine ->fireEvent (self ::STATE1 ,self ::EVENT1 ,$ this ->context );
41+ $ target =$ stateMachine ->fire (self ::STATE1 ,self ::EVENT1 ,$ this ->context );
4242$ this ->assertEquals (self ::STATE2 ,$ target );
4343 }
4444
@@ -68,7 +68,7 @@ public function testExternalTransitionsNormal(): void
6868 ->perform ($ this ->doAction ());
6969$ stateMachine =$ builder ->build (self ::MACHINE_ID ."1 " );
7070
71- $ target =$ stateMachine ->fireEvent (self ::STATE2 ,self ::EVENT1 ,$ this ->context );
71+ $ target =$ stateMachine ->fire (self ::STATE2 ,self ::EVENT1 ,$ this ->context );
7272$ this ->assertEquals (self ::STATE4 ,$ target );
7373 }
7474
@@ -82,8 +82,8 @@ public function testInternalNormal(): void
8282 ->perform ($ this ->doAction ());
8383$ stateMachine =$ builder ->build (self ::MACHINE_ID ."2 " );
8484
85- $ stateMachine ->fireEvent (self ::STATE1 ,self ::EVENT1 ,$ this ->context );
86- $ target =$ stateMachine ->fireEvent (self ::STATE1 ,self ::INTERNAL_EVENT ,$ this ->context );
85+ $ stateMachine ->fire (self ::STATE1 ,self ::EVENT1 ,$ this ->context );
86+ $ target =$ stateMachine ->fire (self ::STATE1 ,self ::INTERNAL_EVENT ,$ this ->context );
8787$ this ->assertEquals (self ::STATE1 ,$ target );
8888 }
8989
@@ -92,16 +92,16 @@ public function testExternalInternalNormal(): void
9292$ stateMachine =$ this ->buildStateMachine ("testExternalInternalNormal " );
9393
9494$ context =$ this ->context ;
95- $ target =$ stateMachine ->fireEvent (self ::STATE1 ,self ::EVENT1 ,$ context );
95+ $ target =$ stateMachine ->fire (self ::STATE1 ,self ::EVENT1 ,$ context );
9696$ this ->assertEquals (self ::STATE2 ,$ target );
9797
98- $ target =$ stateMachine ->fireEvent (self ::STATE2 ,self ::INTERNAL_EVENT ,$ context );
98+ $ target =$ stateMachine ->fire (self ::STATE2 ,self ::INTERNAL_EVENT ,$ context );
9999$ this ->assertEquals (self ::STATE2 ,$ target );
100-
101- $ target =$ stateMachine ->fireEvent (self ::STATE2 ,self ::EVENT2 ,$ context );
100+
101+ $ target =$ stateMachine ->fire (self ::STATE2 ,self ::EVENT2 ,$ context );
102102$ this ->assertEquals (self ::STATE1 ,$ target );
103103
104- $ target =$ stateMachine ->fireEvent (self ::STATE1 ,self ::EVENT3 ,$ context );
104+ $ target =$ stateMachine ->fire (self ::STATE1 ,self ::EVENT3 ,$ context );
105105$ this ->assertEquals (self ::STATE3 ,$ target );
106106 }
107107