Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
reorganise tests
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Feb 10, 2020
1 parent a5b2c2e commit 4a613f1
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
7 changes: 5 additions & 2 deletions phpunit.xml.dist
Expand Up @@ -11,8 +11,11 @@
stopOnFailure="false"
stopOnRisky="true">
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
<testsuite name="Analysis">
<directory suffix="Test.php">./tests/Analysis</directory>
</testsuite>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
Expand Down
6 changes: 3 additions & 3 deletions tests/AnalysisTest.php → tests/Analysis/AnalysisTest.php
Expand Up @@ -11,10 +11,10 @@
* file that was distributed with this source code.
*/

namespace KodeKeep\SushiCountries\Tests;
namespace KodeKeep\SushiCountries\Tests\Analysis;

use GrahamCampbell\Analyzer\AnalysisTrait;
use PHPUnit\Framework\TestCase;
use KodeKeep\SushiCountries\Tests\TestCase;

/**
* @coversNothing
Expand All @@ -26,7 +26,7 @@ class AnalysisTest extends TestCase
public function getPaths(): array
{
return [
realpath(__DIR__.'/../src'),
realpath(__DIR__.'/../../src'),
realpath(__DIR__),
];
}
Expand Down
Expand Up @@ -11,9 +11,10 @@
* file that was distributed with this source code.
*/

namespace KodeKeep\SushiCountries\Tests;
namespace KodeKeep\SushiCountries\Tests\Unit;

use KodeKeep\SushiCountries\CanadianProvince;
use KodeKeep\SushiCountries\Tests\TestCase;

/**
* @covers \KodeKeep\SushiCountries\CanadianProvince
Expand Down
3 changes: 2 additions & 1 deletion tests/CountryTest.php → tests/Unit/CountryTest.php
Expand Up @@ -11,9 +11,10 @@
* file that was distributed with this source code.
*/

namespace KodeKeep\SushiCountries\Tests;
namespace KodeKeep\SushiCountries\Tests\Unit;

use KodeKeep\SushiCountries\Country;
use KodeKeep\SushiCountries\Tests\TestCase;

/**
* @covers \KodeKeep\SushiCountries\Country
Expand Down
3 changes: 2 additions & 1 deletion tests/CurrencyTest.php → tests/Unit/CurrencyTest.php
Expand Up @@ -11,9 +11,10 @@
* file that was distributed with this source code.
*/

namespace KodeKeep\SushiCountries\Tests;
namespace KodeKeep\SushiCountries\Tests\Unit;

use KodeKeep\SushiCountries\Currency;
use KodeKeep\SushiCountries\Tests\TestCase;

/**
* @covers \KodeKeep\SushiCountries\Currency
Expand Down
5 changes: 3 additions & 2 deletions tests/MobileCodeTest.php → tests/Unit/MobileCodeTest.php
Expand Up @@ -11,17 +11,18 @@
* file that was distributed with this source code.
*/

namespace KodeKeep\SushiCountries\Tests;
namespace KodeKeep\SushiCountries\Tests\Unit;

use KodeKeep\SushiCountries\MobileCode;
use KodeKeep\SushiCountries\Tests\TestCase;

/**
* @covers \KodeKeep\SushiCountries\MobileCode
*/
class MobileCodeTest extends TestCase
{
/** @test */
public function can_count_all_countries(): void
public function can_count_all_mobile_codes(): void
{
$this->assertCount(1690, MobileCode::get());
}
Expand Down
3 changes: 2 additions & 1 deletion tests/UnitedStateTest.php → tests/Unit/UnitedStateTest.php
Expand Up @@ -11,8 +11,9 @@
* file that was distributed with this source code.
*/

namespace KodeKeep\SushiCountries\Tests;
namespace KodeKeep\SushiCountries\Tests\Unit;

use KodeKeep\SushiCountries\Tests\TestCase;
use KodeKeep\SushiCountries\UnitedState;

/**
Expand Down

0 comments on commit 4a613f1

Please sign in to comment.