<?php
use ThibaudDauce\EloquentInheritanceStorage\ParentTrait;
use Illuminate\Database\Eloquent\Model as Eloquent;
use Illuminate\Foundation\Testing\TestCase;
use ThibaudDauce\EloquentInheritanceStorage\InheritanceStorage;
use ThibaudDauce\EloquentInheritanceStorage\Facades\InheritanceStorage as FacadeInheritanceStorage;

class InheritanceStorageTest extends TestCase {

  public $warrior;
  public $wizard;
  public $character;
  public $characterCustomStorage;

  /**
   * Creates the application.
   *
   * @return \Symfony\Component\HttpKernel\HttpKernelInterface
   */
  public function createApplication()
  {
    $unitTesting = true;

    $testEnvironment = 'testing';

    return require __DIR__.'/../../../../../bootstrap/start.php';
  }

  public function setUp()
  {
    parent::setUp();

    // Build some objects for our tests
    $this->character              = new Character;
    $this->warrior                = new Warrior;
    $this->wizard                 = new Wizard;
    $this->characterCustomStorage = new CharacterCustomStorage;
  }

  public function tearDown()
  {
    //
  }

  public function testInheritanceStorageActivation()
  {
    $this->assertTrue(InheritanceStorage::$activated);
    FacadeInheritanceStorage::desactivate();
    $this->assertFalse(InheritanceStorage::$activated);
    FacadeInheritanceStorage::activate();
    $this->assertTrue(InheritanceStorage::$activated);
  }

  public function testActionOnStorage()
  {
    $storageTable = FacadeInheritanceStorage::actionOnStorage(function() {
      $character = new Character;
      return $character->getTable();
    });
    $this->assertEquals('characters_storage', $storageTable);

    $character = new Character;
    $notStorageTable = $character->getTable();
    $this->assertNotEquals('characters_storage', $notStorageTable);
  }
}

<?php
use ThibaudDauce\EloquentInheritanceStorage\InheritanceStorage;

class InheritanceStorageTest extends PHPUnit_Framework_TestCase {

  public $character;
  public $inheritanceStorage;

  public function setUp()
  {
    parent::setUp();

    // Build some objects for our tests
    $this->character          = new Character;
    $this->inheritanceStorage = new InheritanceStorage;
  }

  public function tearDown()
  {
    //
  }

  public function testInheritanceStorageActivation()
  {
    $this->assertTrue(InheritanceStorage::$activated);
    $this->inheritanceStorage->desactivate();
    $this->assertFalse(InheritanceStorage::$activated);
    $this->inheritanceStorage->activate();
    $this->assertTrue(InheritanceStorage::$activated);
  }

  public function testActionOnStorage()
  {
    $storageTable = $this->inheritanceStorage->actionOnStorage(function() {
      $character = new Character;
      return $character->getTable();
    });
    $this->assertEquals('characters_storage', $storageTable);

    $character = new Character;
    $notStorageTable = $character->getTable();
    $this->assertNotEquals('characters_storage', $notStorageTable);
  }
}

Fix test case, remove Facade use for travis
Fix test case, remove Facade use for travis
