public function it_can_unserialize_a_command() { $this->commandSerializer->unserialize('serialized')->willReturn('test_command'); $this->unserializeCommand('serialized')->shouldReturn('test_command'); $this->unserializeCommand('serialized'); }