setUp() protected method

This method is called before a test is executed.
protected setUp ( )
 /**
  * Test set up
  */
 public function setUp()
 {
     parent::setUp();
     $this->service = new SearchMediaService($this->appName, $this->environment, $this->logger);
 }
示例#2
0
 /**
  * Test set up
  */
 public function setUp()
 {
     parent::setUp();
     $this->configParser = $this->getMockBuilder('\\OCA\\GalleryPlus\\Service\\ConfigParser')->disableOriginalConstructor()->getMock();
     $this->service = new ConfigService($this->appName, $this->environment, $this->configParser, $this->logger);
 }