Skip to content

Commit

Permalink
Add a ServiceProvider class
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaspaul committed Mar 28, 2017
1 parent 42e4d0b commit dd0075d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 14 deletions.
10 changes: 10 additions & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Jaspaul\LaravelRollout;

use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;

class ServiceProvider extends IlluminateServiceProvider
{

}
14 changes: 0 additions & 14 deletions tests/ExampleTest.php

This file was deleted.

31 changes: 31 additions & 0 deletions tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Tests;

use Mockery;
use Jaspaul\LaravelRollout\ServiceProvider;
use Illuminate\Contracts\Container\Container;
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;

class ServiceProviderTest extends TestCase
{
private $container;
private $serviceProvider;

/**
* @before
*/
function setup_service_provider()
{
$this->container = Mockery::mock(Container::class);
$this->serviceProvider = new ServiceProvider($this->container);
}

/**
* @test
*/
function ensure_a_service_provider_can_be_constructed()
{
$this->assertInstanceOf(IlluminateServiceProvider::class, $this->serviceProvider);
}
}

0 comments on commit dd0075d

Please sign in to comment.