| @@ 49-57 (lines=9) @@ | ||
| 46 | * @expectedException RuntimeException |
|
| 47 | * @expectedExceptionMessage Invalid module name given. Use the format module/name |
|
| 48 | */ |
|
| 49 | public function testInvalidModuleNmeThrowsException() |
|
| 50 | { |
|
| 51 | $tester = new CommandTester($this->command); |
|
| 52 | $input = [ |
|
| 53 | 'module-name' => 'foo', |
|
| 54 | 'module-namespace' => 'Foo' |
|
| 55 | ]; |
|
| 56 | $tester->execute($input); |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @expectedException RuntimeException |
|
| @@ 63-71 (lines=9) @@ | ||
| 60 | * @expectedException RuntimeException |
|
| 61 | * @expectedExceptionMessage It seems your namespace is formed incorrectly. |
|
| 62 | */ |
|
| 63 | public function testInvalidNameSpaceThrowsException() |
|
| 64 | { |
|
| 65 | $tester = new CommandTester($this->command); |
|
| 66 | $input = [ |
|
| 67 | 'module-name' => 'foo/bar', |
|
| 68 | 'module-namespace' => 'Foo' |
|
| 69 | ]; |
|
| 70 | $tester->execute($input); |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * |
|