示例#1
0
 /**
  * @dataProvider getTestCasesForCreateFromCommandTest
  */
 public function testCanCreateFromCommand($command, $expectedObjectType)
 {
     try {
         $result = PutRequest::fromCommand($command);
     } catch (\InvalidArgumentException $e) {
         $result = $e;
     }
     $this->assertEquals($expectedObjectType, get_class($result));
 }