Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5afee4e

Browse files
committed
refactor: move unit tests
1 parent 4bdc774 commit 5afee4e

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"psr-4": { "Coding\\": "src/" }
2121
},
2222
"autoload-dev": {
23-
"psr-4": { "Coding\\Tests\\": "tests/" }
23+
"psr-4": { "Tests\\": "tests/" }
2424
},
2525
"scripts": {
2626
"post-install-cmd": [

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Coding\Tests;
3+
namespace Tests;
44

55
use Coding\Core;
66
use Faker\Factory;
77
use Faker\Generator;
88
use Mockery\Mock;
99
use PHPUnit\Framework\TestCase as PhpUnitTestBase;
1010

11-
class TestCase extends PhpunitTestBase
11+
class TestCase extends PhpUnitTestBase
1212
{
1313
protected Generator $faker;
1414
protected string $token;

tests/CoreTest.php renamed to tests/Unit/CoreTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?php
22

3-
namespace Coding\Tests;
3+
namespace Tests\Unit;
44

55
use Coding\Exceptions\ApiError;
66
use Coding\Core;
77
use GuzzleHttp\Client;
88
use GuzzleHttp\Psr7\Response;
9+
use Tests\TestCase;
910

1011
class CoreTest extends TestCase
1112
{

tests/IssueTest.php renamed to tests/Unit/IssueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
22

3-
namespace Coding\Tests;
3+
namespace Tests\Unit;
44

55
use Coding\Core;
66
use Coding\Issue;
7+
use Tests\TestCase;
78

89
class IssueTest extends TestCase
910
{

tests/IterationTest.php renamed to tests/Unit/IterationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22

3-
namespace Coding\Tests;
3+
namespace Tests\Unit;
44

55
use Coding\Core;
66
use Coding\Exceptions\ValidationException;
77
use Coding\Iteration;
8+
use Tests\TestCase;
89

910
class IterationTest extends TestCase
1011
{

tests/ProjectSettingTest.php renamed to tests/Unit/ProjectSettingTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
22

3-
namespace Coding\Tests;
3+
namespace Tests\Unit;
44

55
use Coding\Issue;
66
use Coding\ProjectSetting;
7+
use Tests\TestCase;
78

89
class ProjectSettingTest extends TestCase
910
{

0 commit comments

Comments
 (0)