Skip to content

Commit 4f907c4

Browse files
committed
Fixes
1 parent cd2a48f commit 4f907c4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/AbstractGraphTest.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,7 @@ protected function buildGraph(array $params = [], string $fixture = ''): string
5959
$cliOutput = $this->task(array_merge($params, ['format' => 'html']));
6060
isFile($output, "HTML file not found. Output: {$cliOutput}");
6161

62-
$result = trim($this->task(array_merge($params, ['format' => 'mermaid'])));
63-
64-
//$lines = explode("\n", $result);
65-
//foreach ($lines as $line) {
66-
// Cli::out("'{$line}',");
67-
//}
68-
69-
return $result;
62+
return trim($this->task(array_merge($params, ['format' => 'mermaid'])));
7063
}
7164

7265
/**
@@ -76,6 +69,8 @@ protected function buildGraph(array $params = [], string $fixture = ''): string
7669
*/
7770
public function task(array $params = []): string
7871
{
72+
$params['--no-ansi'] = null;
73+
7974
$application = new Application();
8075
$application->add(new CommandBuild());
8176
$application->setDefaultCommand('build');
@@ -99,6 +94,7 @@ public function task(array $params = []): string
9994
public function taskReal(array $params = []): string
10095
{
10196
$rootDir = PROJECT_ROOT;
97+
$params['--no-ansi'] = null;
10298

10399
return Cli::exec(
104100
implode(' ', [

0 commit comments

Comments
 (0)