Example #1
0
 public function testZeroValue()
 {
     $args = ['raw' => 0];
     $obj = new Score($args);
     $versioned = $obj->asVersion('1.0.0');
     $this->assertEquals($versioned, $args, "raw with 0 as value");
 }
Example #2
0
 public function testAsVersion()
 {
     $args = ['raw' => '1.5', 'min' => '1.0', 'max' => '2.0', 'scaled' => '.95'];
     $obj = new Score($args);
     $versioned = $obj->asVersion('1.0.0');
     $this->assertEquals($versioned, $args, "version: 1.0.0");
 }