示例#1
0
 public function testAsVersion()
 {
     $args = ['success' => true, 'completion' => true, 'duration' => 'PT15S', 'response' => 'a', 'score' => ['raw' => 100, 'scaled' => 1, 'min' => 0, 'max' => 100]];
     $obj = new Result($args);
     $versioned = $obj->asVersion('1.0.0');
     $this->assertEquals($versioned, $args, "success only: 1.0.0");
 }
示例#2
0
 public function testAsVersion()
 {
     $args = ['success' => true];
     $obj = new Result($args);
     $versioned = $obj->asVersion('1.0.0');
     $this->assertEquals($versioned, $args, "success only: 1.0.0");
 }