-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ARCANESOFT/develop
Recovering PHP 5.6 Support + Organizing the tests
- Loading branch information
Showing
10 changed files
with
71 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ language: php | |
sudo: false | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- nightly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php namespace Arcanesoft\Media\Tests; | ||
<?php namespace Arcanesoft\Media\Tests\Feature; | ||
|
||
use Arcanesoft\Media\Tests\Stubs\Models\User; | ||
use Arcanesoft\Media\Tests\TestCase; | ||
use Illuminate\Http\UploadedFile; | ||
|
||
/** | ||
* Class MediaApiTest | ||
* | ||
* @package Arcanesoft\Media\Tests | ||
* @package Arcanesoft\Media\Tests\Feature | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class MediaApiTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php namespace Arcanesoft\Media\Tests\Unit\Helpers; | ||
|
||
use Arcanesoft\Media\Helpers\ExcludePattern; | ||
use Arcanesoft\Media\Tests\TestCase; | ||
|
||
/** | ||
* Class ExcludePatternTest | ||
* | ||
* @package Arcanesoft\Media\Tests\Unit\Helpers | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ExcludePatternTest extends TestCase | ||
{ | ||
/* ----------------------------------------------------------------- | ||
| Tests | ||
| ----------------------------------------------------------------- | ||
*/ | ||
|
||
/** | ||
* @test | ||
* | ||
* @dataProvider getPatternsForDirectoriesToExclude | ||
* | ||
* @param array $patterns | ||
* @param array $expected | ||
*/ | ||
public function it_can_get_exclude_patterns_for_directories(array $patterns, $expected) | ||
{ | ||
$this->assertSame($expected, ExcludePattern::directories($patterns)); | ||
} | ||
|
||
public function getPatternsForDirectoriesToExclude() | ||
{ | ||
return [ | ||
[ | ||
['folder-1'], ['folder-1', 'folder-1/*'], | ||
],[ | ||
['folder-1/*'], ['folder-1', 'folder-1/*'], | ||
],[ | ||
['folder-1', 'folder-1/*'], ['folder-1', 'folder-1/*'], | ||
],[ | ||
['folder-1/*', 'folder-1'], ['folder-1', 'folder-1/*'], | ||
],[ | ||
['folder-1', 'folder-2'], ['folder-1', 'folder-1/*', 'folder-2', 'folder-2/*'], | ||
],[ | ||
['folder-2', 'folder-1'], ['folder-1', 'folder-1/*', 'folder-2', 'folder-2/*'], | ||
], | ||
]; | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
tests/MediaServiceProviderTest.php → tests/Unit/MediaServiceProviderTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php namespace Arcanesoft\Media\Tests; | ||
<?php namespace Arcanesoft\Media\Tests\Unit; | ||
|
||
use Arcanesoft\Media\Tests\TestCase; | ||
|
||
/** | ||
* Class MediaServiceProviderTest | ||
* | ||
* @package Arcanesoft\Media\Tests | ||
* @package Arcanesoft\Media\Tests\Unit | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class MediaServiceProviderTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php namespace Arcanesoft\Media\Tests; | ||
<?php namespace Arcanesoft\Media\Tests\Unit; | ||
|
||
use Arcanesoft\Media\Events; | ||
use Arcanesoft\Media\Tests\TestCase; | ||
use Illuminate\Http\UploadedFile; | ||
|
||
/** | ||
* Class MediaTest | ||
* | ||
* @package Arcanesoft\Media\Tests | ||
* @package Arcanesoft\Media\Tests\Unit | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class MediaTest extends TestCase | ||
|
2 changes: 1 addition & 1 deletion
2
.../Providers/CommandServiceProviderTest.php → .../Providers/CommandServiceProviderTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters