Skip to content

Commit

Permalink
Add namespace to package specific TestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelpeter committed May 22, 2016
1 parent eb4937d commit facf9c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/IsoCodesValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Validator;

class IsoCodesValidatorTest extends \TestCase
class IsoCodesValidatorTest extends TestCase
{

/**
Expand Down
8 changes: 5 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
namespace Pixelpeter\IsoCodesValidation;

abstract class TestCase extends \Illuminate\Foundation\Testing\TestCase
{
/**
* The base URL to use while testing the application.
Expand All @@ -18,9 +20,9 @@ public function createApplication()
{
$app = require __DIR__.'/../vendor/laravel/laravel/bootstrap/app.php';

$app->register(Pixelpeter\IsoCodesValidation\IsoCodesValidationServiceProvider::class);
$app->register(\Pixelpeter\IsoCodesValidation\IsoCodesValidationServiceProvider::class);

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

return $app;
}
Expand Down

0 comments on commit facf9c4

Please sign in to comment.