We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa0d260 commit 840f7f4Copy full SHA for 840f7f4
tests/classes/Artisan/CommandTest.php
@@ -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
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
25
+ public function it_has_static_constructor_named_factory()
26
27
+ $command = Command::factory('test');
28
29
30
+}
0 commit comments