Skip to content

Commit e5ccf17

Browse files
Renaming test files
1 parent b4024a8 commit e5ccf17

28 files changed

+42
-42
lines changed

tests/Fixtures/custom-exporters-config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ cognitive:
1515
customExporters:
1616
cognitive:
1717
test:
18-
class: 'Phauthentic\CognitiveCodeAnalysis\Business\Cognitive\Exporter\JsonExporter'
18+
class: 'Phauthentic\CognitiveCodeAnalysis\Business\Cognitive\Report\JsonReport'
1919
file: null
2020
churn:
2121
test:
22-
class: 'Phauthentic\CognitiveCodeAnalysis\Business\Churn\Exporter\JsonExporter'
22+
class: 'Phauthentic\CognitiveCodeAnalysis\Business\Churn\Report\JsonReport'
2323
file: null

tests/Unit/Business/Churn/Exporter/AbstractExporterTestCase.php renamed to tests/Unit/Business/Churn/Report/AbstractReporterTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
declare(strict_types=1);
44

5-
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Exporter;
5+
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Report;
66

77
use Phauthentic\CognitiveCodeAnalysis\Business\Utility\Datetime;
88
use PHPUnit\Framework\TestCase;
99

1010
/**
1111
*
1212
*/
13-
class AbstractExporterTestCase extends TestCase
13+
class AbstractReporterTestCase extends TestCase
1414
{
1515
protected string $filename;
1616

tests/Unit/Business/Churn/Exporter/ChurnExporterFactoryCustomTest.php renamed to tests/Unit/Business/Churn/Report/ChurnReporterFactoryCustomTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Exporter;
5+
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Report;
66

77
use InvalidArgumentException;
88
use Phauthentic\CognitiveCodeAnalysis\Business\Churn\Report\ChurnReportFactory;
@@ -13,12 +13,12 @@
1313
use PHPUnit\Framework\MockObject\Exception;
1414
use PHPUnit\Framework\TestCase;
1515
use PHPUnit\Framework\MockObject\MockObject;
16-
use Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Exporter\TestCognitiveConfig;
16+
use Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Report\TestCognitiveConfig;
1717

1818
/**
1919
* Test case for ChurnReportFactory with custom exporters.
2020
*/
21-
class ChurnExporterFactoryCustomTest extends TestCase
21+
class ChurnReporterFactoryCustomTest extends TestCase
2222
{
2323
/**
2424
* @throws Exception

tests/Unit/Business/Churn/Exporter/CsvExportTest.php renamed to tests/Unit/Business/Churn/Report/CsvExportTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Exporter;
5+
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Report;
66

77
use Phauthentic\CognitiveCodeAnalysis\Business\Churn\Report\CsvReport;
88
use Phauthentic\CognitiveCodeAnalysis\CognitiveAnalysisException;
@@ -11,7 +11,7 @@
1111
/**
1212
*
1313
*/
14-
class CsvExportTest extends AbstractExporterTestCase
14+
class CsvExportTest extends AbstractReporterTestCase
1515
{
1616
protected function setUp(): void
1717
{
@@ -28,7 +28,7 @@ public function testExport(): void
2828
$this->exporter->export($classes, $this->filename);
2929

3030
$this->assertFileEquals(
31-
expected: __DIR__ . '/CsvExporterContent.csv',
31+
expected: __DIR__ . '/CsvReporterContent.csv',
3232
actual: $this->filename
3333
);
3434
}

tests/Unit/Business/Churn/Exporter/CsvExporterContent.csv renamed to tests/Unit/Business/Churn/Report/CsvReporterContent.csv

File renamed without changes.

tests/Unit/Business/Churn/Exporter/HtmlExporterContent.html renamed to tests/Unit/Business/Churn/Report/HtmlReporterContent.html

File renamed without changes.

tests/Unit/Business/Churn/Exporter/HtmlExporterTest.php renamed to tests/Unit/Business/Churn/Report/HtmlReporterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
declare(strict_types=1);
44

5-
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Exporter;
5+
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Report;
66

77
use Phauthentic\CognitiveCodeAnalysis\Business\Churn\Report\CsvReport;
88
use PHPUnit\Framework\Attributes\Test;
99

1010
/**
1111
*
1212
*/
13-
class HtmlExporterTest extends AbstractExporterTestCase
13+
class HtmlReporterTest extends AbstractReporterTestCase
1414
{
1515
protected function setUp(): void
1616
{
@@ -27,7 +27,7 @@ public function testExport(): void
2727
$this->exporter->export($classes, $this->filename);
2828

2929
$this->assertFileEquals(
30-
expected: __DIR__ . '/HtmlExporterContent.html',
30+
expected: __DIR__ . '/HtmlReporterContent.html',
3131
actual: $this->filename
3232
);
3333
}

tests/Unit/Business/Churn/Exporter/JsonExporterContent.json renamed to tests/Unit/Business/Churn/Report/JsonReporterContent.json

File renamed without changes.

tests/Unit/Business/Churn/Exporter/JsonExporterTest.php renamed to tests/Unit/Business/Churn/Report/JsonReporterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
declare(strict_types=1);
44

5-
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Exporter;
5+
namespace Phauthentic\CognitiveCodeAnalysis\Tests\Unit\Business\Churn\Report;
66

77
use Phauthentic\CognitiveCodeAnalysis\Business\Churn\Report\JsonReport;
88
use PHPUnit\Framework\Attributes\Test;
99

1010
/**
1111
*
1212
*/
13-
class JsonExporterTest extends AbstractExporterTestCase
13+
class JsonReporterTest extends AbstractReporterTestCase
1414
{
1515
protected function setUp(): void
1616
{
@@ -28,7 +28,7 @@ public function testExport(): void
2828
$this->exporter->export($classes, $this->filename);
2929

3030
$this->assertFileEquals(
31-
expected: __DIR__ . '/JsonExporterContent.json',
31+
expected: __DIR__ . '/JsonReporterContent.json',
3232
actual: $this->filename
3333
);
3434
}

tests/Unit/Business/Churn/Exporter/MarkdownExporterContent.md renamed to tests/Unit/Business/Churn/Report/MarkdownReporterContent.md

File renamed without changes.

0 commit comments

Comments
 (0)