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