예제 #1
0
 /**
  * @covers \Xrandr\Geometry::getResolutionString
  * @covers \Xrandr\Geometry::__construct
  */
 public function testGetResolutionString()
 {
     $randomWidth = rand(0, 3500);
     $randomHeight = rand(0, 3500);
     $expectedString = "{$randomWidth}x{$randomHeight}";
     $object = new Geometry($randomWidth, $randomHeight, 0, 0);
     $this->assertEquals($expectedString, $object->getResolutionString());
 }