Example #1
0
 /**
  * (non-PHPDoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $issueXML = new IssueXML();
     $xml = new DOMDocument('1.0', 'UTF-8');
     $xml->loadXML($this->testXml);
     $issueXML->addXMLFile($xml);
     $this->errorCPD = new ErrorCPD($issueXML);
 }
Example #2
0
 /**
  * (non-PHPDoc)
  * @see AbstractTestCase::setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->ioHelper = new IOHelper();
 }
 /**
  * (non-PHPDoc)
  * @see AbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->logger = new Logger('PHPCodeBrowser');
     $this->logger->pushHandler(new NullHandler());
     $this->sourceHandler = new SourceHandler($this->logger);
     array_walk($this->plugins, array($this->sourceHandler, 'addPlugin'));
 }
Example #4
0
 /**
  * (non-PHPDoc)
  * @see AbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->file = new File('/some/file/name.php');
 }
Example #5
0
 /**
  * (non-PHPDoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->ioMock = $this->getMock('PHPCodeBrowser\\Helper\\IOHelper');
     $this->viewReview = new ViewReview(PHPCB_ROOT_DIR . '/../templates/', PHPCB_TEST_OUTPUT, $this->ioMock);
 }
 /**
  * (non-PHPDoc)
  * @see tests/cbAbstractTests#setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $issueXML = new IssueXML();
     $xml = new DOMDocument('1.0', 'UTF-8');
     $xml->validateOnParse = true;
     $xml->loadXML($this->testXml);
     $issueXML->addXMLFile($xml);
     $this->errorCheckstyle = new ErrorCheckstyle($issueXML);
 }
Example #7
0
 /**
  * (non-PHPDoc)
  * @see tests/cbAbstractTests#tearDown()
  */
 protected function tearDown()
 {
     parent::tearDown();
 }