if (\
in_array($transportName,
['message_countable', 'another_message_countable'
], true
)) { return $messageCountableTransport;
} return $simpleTransport;
});
$serviceLocator ->
method('has'
) ->
willReturnCallback(fn (string
$transportName) => \
in_array($transportName,
['message_countable', 'simple', 'another_message_countable'
], true
)) ;
$this->command =
new StatsCommand($serviceLocator,
[ 'message_countable',
'simple',
'another_message_countable',
'unexisting',
]);
} public function testWithoutArgument() { $tester =
new CommandTester($this->command
);
$tester->
execute([]);