protected function executeManagerFunction(InputInterface $input, OutputInterface $output, WorkerManager $manager, $workers) { $number = intval(Str::removeFirst($input->getOption('number'), '=')); $manager->startWorkers($workers, $number); }
public function test_remove_first_containing_value() { $this->assertSame("HelloHelloGoodbye", Str::removeFirst("HelloGoodbyeHelloGoodbye", "Goodbye")); $this->assertSame("HelloHelloGoodbye", Str::removeFirst("HelloGOODBYEHelloGoodbye", "goodbye", false)); }