finshed result printer and fix posting bugs

This commit is contained in:
James
2019-09-22 16:26:25 +01:00
parent b9d8f04875
commit f05a4e8687
4 changed files with 44 additions and 112 deletions

View File

@@ -1,18 +1,23 @@
<?php
namespace JHodges\GiteaBitPHPUnit;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LogLevel;
namespace JHodges\GiteaBotPHPUnit;
class ResultPrinter extends \PHPUnit\TextUI\ResultPrinter
{
public function __construct($out = null, $verbose = false, $colors = self::COLOR_DEFAULT, $debug = false, $numberOfColumns = 80)
{
public function __construct($out = null, $verbose = false, $colors = self::COLOR_DEFAULT, $debug = false, $numberOfColumns = 80){
parent::__construct($out, $verbose, $colors , $debug , $numberOfColumns);
}
public function printResult(\PHPUnit\Framework\TestResult $result)
{
$poster=new \JHodges\GiteaBotPHPUnit\Poster('/tmp/testdox.txt','/tmp/logfile.xml');
$poster->post(
getenv('GiteaUrl'),
getenv('GiteaUser'),
getenv('GiteaPass'),
getenv('GiteaRepoUser'),
getenv('GiteaRepo')
);
}
protected function printHeader()