예제 #1
0
 /**
  */
 public function testDegreesAngle()
 {
     $value = rand(1, 100);
     $this->assertEquals(0, Drawing::degreesToAngle());
     $this->assertEquals((int) round($value * 60000), Drawing::degreesToAngle($value));
     $this->assertEquals(0, Drawing::angleToDegrees());
     $this->assertEquals(round($value / 60000), Drawing::angleToDegrees($value));
 }