示例#1
0
 /**
  * @covers ByJG\ImageUtil\ImageUtil::restore
  * @todo   Implement testRestore().
  */
 public function testRestore()
 {
     $expected = $this->getResourceString($this->object->getImage());
     // Do some operactions
     $this->object->rotate(30);
     $this->object->flip(Flip::BOTH);
     $this->object->resizeSquare(40);
     $this->assertNotEquals($expected, $this->getResourceString($this->object->getImage()));
     $this->object->restore();
     $this->assertEquals($expected, $this->getResourceString($this->object->getImage()));
 }