public function testDefaultScreen() { $screen = new Screen(320, 480); $this->assertEquals(320, $screen->getWidth()); $this->assertEquals(480, $screen->getHeight()); $this->assertTrue($screen->isRetina()); }
/** * @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(); }
/** * * @param \Arjf\DesignPatterns\Structural\Adapter\Iphone3Screen $screen */ public function __construct(Screen $screen) { parent::__construct($screen->getWidth(), $screen->getHeight(), false); }