Skip to content

Commit facf9c4

Browse files
committed
Add namespace to package specific TestCase
1 parent eb4937d commit facf9c4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/IsoCodesValidatorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Validator;
66

7-
class IsoCodesValidatorTest extends \TestCase
7+
class IsoCodesValidatorTest extends TestCase
88
{
99

1010
/**

tests/TestCase.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
3+
namespace Pixelpeter\IsoCodesValidation;
4+
5+
abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
46
{
57
/**
68
* The base URL to use while testing the application.
@@ -18,9 +20,9 @@ public function createApplication()
1820
{
1921
$app = require __DIR__.'/../vendor/laravel/laravel/bootstrap/app.php';
2022

21-
$app->register(Pixelpeter\IsoCodesValidation\IsoCodesValidationServiceProvider::class);
23+
$app->register(\Pixelpeter\IsoCodesValidation\IsoCodesValidationServiceProvider::class);
2224

23-
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
25+
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
2426

2527
return $app;
2628
}

0 commit comments

Comments
 (0)