Example #1
0
 public function testDefaultScreen()
 {
     $screen = new Screen(320, 480);
     $this->assertEquals(320, $screen->getWidth());
     $this->assertEquals(480, $screen->getHeight());
     $this->assertTrue($screen->isRetina());
 }
Example #2
0
 /**
  * @param int $width
  * @param int $height
  * @param bool $retina
  */
 public function __construct($width, $height, $retina = true)
 {
     parent::__construct($width, $height, $retina);
     $this->contrast = self::CONTRAST_FLOOR;
     $this->illuminate();
 }
Example #3
0
 /**
  * 
  * @param \Arjf\DesignPatterns\Structural\Adapter\Iphone3Screen $screen
  */
 public function __construct(Screen $screen)
 {
     parent::__construct($screen->getWidth(), $screen->getHeight(), false);
 }