runModuleCommand( filename: 'unreached-valid.0.wasm', name: null, line: 1, ); } public function testAssertTrap1(): void { $this->runAssertTrapCommand( action: ['type' => 'invoke', 'field' => 'select-trap-left', 'args' => [['type' => 'i32', 'value' => '1']]], text: 'unreachable', line: 42, ); } public function testAssertTrap2(): void { $this->runAssertTrapCommand( action: ['type' => 'invoke', 'field' => 'select-trap-left', 'args' => [['type' => 'i32', 'value' => '0']]], text: 'unreachable', line: 43, ); } public function testAssertTrap3(): void { $this->runAssertTrapCommand( action: ['type' => 'invoke', 'field' => 'select-trap-right', 'args' => [['type' => 'i32', 'value' => '1']]], text: 'unreachable', line: 44, ); } public function testAssertTrap4(): void { $this->runAssertTrapCommand( action: ['type' => 'invoke', 'field' => 'select-trap-right', 'args' => [['type' => 'i32', 'value' => '0']]], text: 'unreachable', line: 45, ); } public function testModule5(): void { $this->runModuleCommand( filename: 'unreached-valid.1.wasm', name: null, line: 49, ); } public function testAssertTrap6(): void { $this->runAssertTrapCommand( action: ['type' => 'invoke', 'field' => 'meet-bottom', 'args' => []], text: 'unreachable', line: 63, ); } }