public function testConstruct() { $command = new \r8\CLI\Command('name', 'desc'); $this->assertSame('name', $command->getName()); $this->assertSame('desc', $command->getDescription()); $this->assertEquals(array(new \r8\CLI\Form()), $command->getForms()); try { new \r8\CLI\Command('', 'desc'); $this->fail("An expected exception was not thrown"); } catch (\r8\Exception\Argument $err) { } try { new \r8\CLI\Command('name', ''); $this->fail("An expected exception was not thrown"); } catch (\r8\Exception\Argument $err) { } }