Ejemplo n.º 1
0
 public function testChildExecutesSuccessfully()
 {
     $expected = 'execute called';
     $this->command->setExecuteOutput($expected);
     $this->setupStartFunctions(null);
     $pcntl_signal = $this->getFunctionMock('\\Phlib\\ConsoleProcess\\Command', 'pcntl_signal');
     $pcntl_signal->expects($this->any())->will($this->returnValue(true));
     $this->tester->execute(['action' => 'start', '-p' => '/path/to/my.pid', '-d' => true]);
     $this->assertContains("{$expected}\n", $this->tester->getDisplay());
 }