Esempio n. 1
0
 public function setUp()
 {
     $this->driver = $this->getMockBuilder('\\Thruster\\Components\\InterProcessCommunication\\Driver\\DriverInterface')->getMockForAbstractClass();
     $this->signalHandler = $this->getMockBuilder('\\Thruster\\Components\\PosixSignalHandler\\SignalHandler')->getMock();
     $this->posix = $this->getMockBuilder('\\Thruster\\Wrappers\\Posix\\Posix')->getMock();
     $this->connection = new Connection();
     $this->connection->setSignalHandler($this->signalHandler);
     $this->connection->setPosix($this->posix);
     $this->connection->getDriver();
     $this->connection->setDriver($this->driver);
 }