Skip to content

Commit

Permalink
fix DependencyContext initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
gennadigennadigennadi committed Mar 26, 2024
1 parent 257214c commit 41085c0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/Supportive/OutputFormatter/MermaidJSOutputFormatterTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

declare(stric_types=1);

namespace Tests\Qossmic\Deptrac\Supportive\OutputFormatter;

use PHPUnit\Framework\TestCase;
use Qossmic\Deptrac\Contract\Analyser\AnalysisResult;
use Qossmic\Deptrac\Contract\Ast\DependencyContext;
use Qossmic\Deptrac\Contract\Ast\DependencyType;
use Qossmic\Deptrac\Contract\Ast\FileOccurrence;
use Qossmic\Deptrac\Contract\OutputFormatter\OutputFormatterInput;
Expand All @@ -21,13 +24,19 @@
use Symfony\Component\Console\Style\SymfonyStyle;
use Tests\Qossmic\Deptrac\Supportive\OutputFormatter\data\DummyViolationCreatingRule;

class MermaidJSOutputFormatterTest extends TestCase
final class MermaidJSOutputFormatterTest extends TestCase
{
public function testFinish(): void
{
$dependencyContext = new DependencyContext(
new FileOccurrence('classA.php', 0),
DependencyType::PARAMETER,
);

$dependency = new Dependency(
ClassLikeToken::fromFQCN('ClassA'),
ClassLikeToken::fromFQCN('ClassC'), new FileOccurrence('classA.php', 0), DependencyType::PARAMETER
ClassLikeToken::fromFQCN('ClassC'),
$dependencyContext,
);

$analysisResult = new AnalysisResult();
Expand Down

0 comments on commit 41085c0

Please sign in to comment.