finshed result printer and fix posting bugs
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user