/**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_mockFDHandler = $this->_getMockFDHandler();
     $this->_mockErrorHandler = $this->_getMockErrorHandler();
     $this->_mockJSGenerator = $this->_getMockJSGenerator();
     $this->_cbHTMLGenerator = new CbHTMLGenerator($this->_mockFDHandler, $this->_mockErrorHandler, $this->_mockJSGenerator);
 }
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_mockFDHandler = $this->_getMockFDHandler();
     $this->_cbXMLGenerator = new CbXMLGenerator($this->_mockFDHandler);
 }
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $issueXML = new CbIssueXML();
     $xml = new DOMDocument('1.0', 'UTF-8');
     $xml->validateOnParse = true;
     $xml->loadXML($this->_testXml);
     $issueXML->addXMLFile($xml);
     $this->_cbErrorCheckstyle = new CbErrorCheckstyle($issueXML);
 }
Пример #4
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $issueXML = new CbIssueXML();
     $xml = new DOMDocument('1.0', 'UTF-8');
     $xml->loadXML($this->_testXml);
     $issueXML->addXMLFile($xml);
     $this->_cbErrorPmd = new CbErrorPMD($issueXML);
 }
Пример #5
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_ioHelper = new CbIOHelper();
 }
Пример #6
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_cbErrorCPD = new CbErrorCPD('source/', $this->_getMockXMLHandler());
 }
Пример #7
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 public function setUp()
 {
     parent::setUp();
     $this->_mockXMLHandler = $this->_getMockXMLHandler();
     $this->_cbPluginError = new CbMockPluginError(PHPCB_SOURCE, $this->_mockXMLHandler);
 }
Пример #8
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_cbFDHandler = new CbFDHandler();
 }
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_cbSourceHandler = new CbSourceHandler(Log::singleton('null'));
     array_walk($this->_plugins, array($this->_cbSourceHandler, 'addPlugin'));
 }
Пример #10
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_mockXMLHandler = $this->_getMockXMLHandler();
     $this->_cbErrorHandler = new CbErrorHandler($this->_mockXMLHandler);
 }
Пример #11
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_ioMock = $this->getMock('CbIOHelper');
     $this->_cbViewReview = new CbViewReview(PHPCB_ROOT_DIR . '/templates/', PHPCB_TEST_OUTPUT, $this->_ioMock);
 }
Пример #12
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_cbIssue = new CbIssue('testFileName', 23, 27, 'testFinder', 'testDescription', 'notice');
 }
Пример #13
0
 /**
  * (non-PHPdoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_cbFile = new CbFile('/some/file/name.php');
 }