Esempio n. 1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     SessionState::reset();
     $storageStub = $this->getMock('Packfire\\Session\\StorageInterface');
     $storageStub->expects($this->once())->method('load');
     $this->stub = $storageStub;
     $this->object = new Session($storageStub);
 }