/** * Test a setup-error */ public function testSetupError() { $aOptions = $this->_object->getOptions(); if (empty($aOptions) !== true) { $this->setExpectedException('\\parallely\\Exception', \parallely\Exception::SETUP_ERROR); $this->_object->setConfig(new \stdClass()); } else { $this->markTestSkipped(sprintf('No options to test for %s', $this->_sTestClass)); } }
/** * Read the test-results from shared-memory * * @return $this */ private function _read() { foreach (array_keys($this->_aStack) as $iStack) { $mResult = $this->_oTransport->read($iStack); if (empty($mResult) !== true) { $this->_aStack[$iStack] = unserialize(gzuncompress($mResult)); $this->_oTransport->delete($iStack); } } return $this; }