public function setUp()
 {
     parent::setUp();
     $stream = new MemoryStream();
     $stream->open();
     $this->setStreamAccess(new PhpStreamAccess($stream));
 }
示例#2
0
 public function setUp()
 {
     parent::setUp();
     $test = new XmlCompactDocument();
     $test->load(self::samplesDir() . 'custom/runtime/linear_5_items.xml');
     $this->setTest($test->getDocumentComponent());
 }
示例#3
0
 public function setUp()
 {
     parent::setUp();
     $stream = new MemoryStream();
     $stream->open();
     $this->setStream($stream);
 }
 public function setUp()
 {
     parent::setUp();
     $xml = new XmlCompactDocument('2.1');
     $xml->load(self::samplesDir() . 'custom/runtime/assessmenttest_context.xml');
     $sessionManager = new SessionManager();
     $this->state = $sessionManager->createAssessmentTestSession($xml->getDocumentComponent());
     $this->state['OUTCOME1'] = new String('String!');
 }
 public function setUp()
 {
     parent::setUp();
     $testFilePath = self::samplesDir() . 'custom/runtime/itemsubset.xml';
     $doc = new XmlCompactDocument();
     $doc->load($testFilePath);
     $sessionManager = new SessionManager();
     $testSession = $sessionManager->createAssessmentTestSession($doc->getDocumentComponent());
     $testSession->beginTestSession();
     $this->setTestSession($testSession);
 }
 public function setUp()
 {
     parent::setUp();
     $this->emptyStream = new MemoryStream();
     $this->emptyStream->open();
 }
示例#7
0
 public function setUp()
 {
     parent::setUp();
     $this->container = new Container();
 }
示例#8
0
 public function setUp()
 {
     parent::setUp();
 }
 public function setUp()
 {
     parent::setUp();
     $this->operands = new OperandsCollection();
 }
示例#10
0
 public function setUp()
 {
     parent::setUp();
     $this->basicStream = new MemoryStream('binary-data');
     $this->emptyStream = new MemoryStream();
 }
示例#11
0
 public function setUp()
 {
     parent::setUp();
     $this->collection = new StringCollection();
 }
 public function setUp()
 {
     parent::setUp();
     // register testing custom operators autoloader.
     spl_autoload_register('custom_operator_autoloader');
 }
 public function setUp()
 {
     parent::setUp();
     $this->collection = new IdentifierCollection();
 }