Skip to content

Commit c80a1ce

Browse files
committed
ICM: Tests structure.
1 parent e04e25e commit c80a1ce

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
},
3232
"autoload-dev": {
3333
"classmap": [
34-
"tests/TestCase.php",
35-
"tests/fixture/app"
34+
"tests/ConsoleMutex/TestCase.php",
35+
"tests/ConsoleMutex/fixture/app"
3636
]
3737
}
3838
}

tests/MutexTest.php renamed to tests/ConsoleMutex/MutexTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?php
22

3+
namespace Illuminated\Console\ConsoleMutex\Tests;
4+
5+
use GenericCommand;
6+
use Illuminate\Support\Facades\Cache;
37
use Illuminated\Console\Mutex;
8+
use Mockery;
49
use NinjaMutex\Lock\FlockLock;
510
use NinjaMutex\Lock\MemcachedLock;
611
use NinjaMutex\Lock\MySqlLock;

tests/TestCase.php renamed to tests/ConsoleMutex/TestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

3+
namespace Illuminated\Console\ConsoleMutex\Tests;
4+
35
use Illuminate\Contracts\Console\Kernel as KernelContract;
6+
use Kernel;
47

58
abstract class TestCase extends \Orchestra\Testbench\TestCase
69
{

tests/WithoutOverlappingTraitTest.php renamed to tests/ConsoleMutex/WithoutOverlappingTraitTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
namespace Illuminated\Console\ConsoleMutex\Tests;
4+
5+
use GenericCommand;
6+
use Mockery;
7+
use MysqlStrategyCommand;
8+
use NullTimeoutCommand;
9+
use RuntimeException;
10+
use TimeoutCommand;
11+
312
class WithoutOverlappingTraitTest extends TestCase
413
{
514
/** @test */

0 commit comments

Comments
 (0)