Exemple #1
0
 public function testOrientation()
 {
     $this->_object->setOrientation(1);
     $this->assertSame(1.0, $this->_object->getOrientation());
     $this->_object->setOrientation(1.25);
     $this->assertSame(1.25, $this->_object->getOrientation());
     $this->_object->setOrientation(true);
     $this->assertSame(1.0, $this->_object->getOrientation());
     $this->_object->setOrientation('200a');
     $this->assertSame(200.0, $this->_object->getOrientation());
     $this->_object->setOrientation(360);
     $this->assertSame(0.0, $this->_object->getOrientation());
 }