From aa2e11f3aedff0033a242dd670ff8079d7b21df9 Mon Sep 17 00:00:00 2001 From: Denis Smetannikov Date: Mon, 17 Aug 2020 21:14:36 +0300 Subject: [PATCH] Experiment in TC --- tests/ConverterTeamCityInspectionsTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ConverterTeamCityInspectionsTest.php b/tests/ConverterTeamCityInspectionsTest.php index 531c571..e5f28f0 100644 --- a/tests/ConverterTeamCityInspectionsTest.php +++ b/tests/ConverterTeamCityInspectionsTest.php @@ -36,7 +36,7 @@ public function testPhpCsCodestyle() $actual = (new TeamCityInspectionsConverter(['show-datetime' => false])) ->setFlowId(1) ->fromInternal($source); - echo $actual; + isSame( "\n" . implode("\n\n", [ "##teamcity[inspectionType id='CheckStyle:PSR12.Properties.ConstantVisibility.NotFound' name='PSR12.Properties.ConstantVisibility.NotFound' category='CheckStyle' description='Issues found while checking coding standards' flowId='1']", @@ -60,7 +60,7 @@ public function testPhanCodeStyle() $actual = (new TeamCityInspectionsConverter(['show-datetime' => false])) ->setFlowId(1) ->fromInternal($source); - echo $actual; + isSame( "\n" . implode("\n\n", [ "##teamcity[inspectionType id='CheckStyle:PhanPossiblyFalseTypeMismatchProperty' name='PhanPossiblyFalseTypeMismatchProperty' category='CheckStyle' description='Issues found while checking coding standards' flowId='1']", @@ -88,7 +88,7 @@ public function testJUnitSimple() $actual = (new TeamCityInspectionsConverter(['show-datetime' => false])) ->setFlowId(1) ->fromInternal($source); - echo $actual; + isSame( "\n" . implode("\n\n", [ "##teamcity[inspectionType id='CodingStandardIssues:JBZoo\PHPUnit\ExampleTest' name='JBZoo\PHPUnit\ExampleTest' category='CodingStandardIssues' description='Issues found while checking coding standards' flowId='1']", @@ -114,7 +114,7 @@ public function testJUnitNested() $actual = (new TeamCityInspectionsConverter(['show-datetime' => false])) ->setFlowId(1) ->fromInternal($source); - echo $actual; + isSame( "\n" . implode("\n\n", [ "##teamcity[inspectionType id='CodingStandardIssues:JBZoo\PHPUnit\ExampleTest' name='JBZoo\PHPUnit\ExampleTest' category='CodingStandardIssues' description='Issues found while checking coding standards' flowId='1']",