Skip to content

Commit

Permalink
Apply fixtures commit
Browse files Browse the repository at this point in the history
  • Loading branch information
divineniiquaye committed May 20, 2020
1 parent 1ccfc3d commit d645d9e
Show file tree
Hide file tree
Showing 34 changed files with 540 additions and 500 deletions.
4 changes: 2 additions & 2 deletions Tests/IniTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
namespace BiuradPHP\Loader\Tests;

use PHPUnit\Framework\TestCase;
use BiuradPHP\Loader\Adapters\IniAdapter;
use BiuradPHP\Loader\ConfigLoader;
use BiuradPHP\Loader\Files\Adapters\IniAdapter;
use BiuradPHP\Loader\Files\ConfigLoader;

/**
* @requires PHP 7.1.30
Expand Down
4 changes: 2 additions & 2 deletions Tests/JsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
namespace BiuradPHP\Loader\Tests;

use PHPUnit\Framework\TestCase;
use BiuradPHP\Loader\Adapters\JsonAdapter;
use BiuradPHP\Loader\ConfigLoader;
use BiuradPHP\Loader\Files\Adapters\JsonAdapter;
use BiuradPHP\Loader\Files\ConfigLoader;

/**
* @requires PHP 7.1.30
Expand Down
16 changes: 10 additions & 6 deletions Tests/UniformResourceLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
namespace BiuradPHP\Loader\Tests;

use PHPUnit\Framework\TestCase;
use BiuradPHP\Loader\UniformResourceLocator;
use BiuradPHP\Loader\UniformResourceIterator;
use BiuradPHP\Loader\RecursiveUniformResourceIterator;
use BiuradPHP\Loader\Resources\UniformResourceLocator;
use BiuradPHP\Loader\Resources\UniformResourceIterator;
use BiuradPHP\Loader\Resources\RecursiveUniformResourceIterator;
use BiuradPHP\Loader\Interfaces\ResourceLocatorInterface;

/**
Expand Down Expand Up @@ -95,7 +95,8 @@ public function testGetPaths($scheme, $expected)
}


public function getPathsProvider() {
public function getPathsProvider()
{
return [
['base', ['' => ['base']]],
['local', ['' => ['local']]],
Expand Down Expand Up @@ -217,7 +218,8 @@ public function testInvoke($uri, $paths)
}


public function normalizeProvider() {
public function normalizeProvider()
{
return [
['', ''],
['./', ''],
Expand Down Expand Up @@ -252,7 +254,9 @@ public function normalizeProvider() {

];
}
public function findResourcesProvider() {

public function findResourcesProvider()
{
return [
['all://base.txt', ['base/all/base.txt']],
['all://base_all.txt', ['override/all/base_all.txt', 'local/all/base_all.txt', 'base/all/base_all.txt']],
Expand Down
4 changes: 2 additions & 2 deletions Tests/XmlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
namespace BiuradPHP\Loader\Tests;

use PHPUnit\Framework\TestCase;
use BiuradPHP\Loader\Adapters\XmlAdapter;
use BiuradPHP\Loader\ConfigLoader;
use BiuradPHP\Loader\Files\Adapters\XmlAdapter;
use BiuradPHP\Loader\Files\ConfigLoader;

/**
* @requires PHP 7.1.30
Expand Down
4 changes: 2 additions & 2 deletions Tests/YamlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
namespace BiuradPHP\Loader\Tests;

use PHPUnit\Framework\TestCase;
use BiuradPHP\Loader\Adapters\YamlAdapter;
use BiuradPHP\Loader\ConfigLoader;
use BiuradPHP\Loader\Files\Adapters\YamlAdapter;
use BiuradPHP\Loader\Files\ConfigLoader;

/**
* @requires PHP 7.1.30
Expand Down
14 changes: 4 additions & 10 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
<?php

$paths = [
'../../../vendor/autoload.php',
__DIR__. '/vendor/autoload.php',
__DIR__ . '/../vendor/autoload.php',
__DIR__. '/../../vendor/autoload.php',
dirname(__DIR__, 4) . '/storage/dev-autoload.php',
dirname(__DIR__, 3) . '/autoload.php',
dirname(__DIR__) . '/vendor/autoload.php',
];


foreach ($paths as $vendor) {
if (file_exists($vendor)) {
return require $vendor;
}
}
return require current(array_filter($paths, 'file_exists'));
142 changes: 0 additions & 142 deletions src/AliasLoader.php

This file was deleted.

Loading

0 comments on commit d645d9e

Please sign in to comment.