protected function setUp()
 {
     if (defined('PHP_WINDOWS_VERSION_BUILD')) {
         $this->markTestSkipped('Unable to run on Windows');
     }
     $this->object = $this->getMockBuilder('Oro\\Bundle\\CronBundle\\Job\\Daemon')->setConstructorArgs(array('app', 10))->setMethods(array('getPidProcess', 'getQueueRunProcess', 'getQueueStopProcess'))->getMock();
     $this->process = $this->getMockBuilder('Symfony\\Component\\Process\\Process')->setConstructorArgs(array('echo 1'))->getMock();
     $this->process->expects($this->any())->method('run')->will($this->returnValue(true));
     $this->process->expects($this->any())->method('start')->will($this->returnValue(true));
     $this->object->expects($this->any())->method('getPidProcess')->will($this->returnValue($this->process));
     $this->object->expects($this->any())->method('getQueueRunProcess')->will($this->returnValue($this->process));
     $this->object->expects($this->any())->method('getQueueStopProcess')->with($this->anything())->will($this->returnValue($this->process));
 }