Skip to content

Commit 840f7f4

Browse files
committed
IHF: CommandTest started.
1 parent aa0d260 commit 840f7f4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace Illuminated\Helpers\Artisan;
4+
5+
use PHPUnit_Framework_Error;
6+
use TestCase;
7+
8+
class CommandTest extends TestCase
9+
{
10+
/** @test */
11+
public function it_has_required_arguments()
12+
{
13+
$this->expectException(PHPUnit_Framework_Error::class);
14+
return new Command();
15+
}
16+
17+
/** @test */
18+
public function it_has_one_required_argument_which_is_command()
19+
{
20+
$command = new Command('test');
21+
$this->assertInstanceOf(Command::class, $command);
22+
}
23+
24+
/** @test */
25+
public function it_has_static_constructor_named_factory()
26+
{
27+
$command = Command::factory('test');
28+
$this->assertInstanceOf(Command::class, $command);
29+
}
30+
}

0 commit comments

Comments
 (0)