for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Passbook\Tests\Pass;
use Passbook\Pass\Image;
class ImageTest extends \PHPUnit_Framework_TestCase
{
public function testImage()
$image = new Image(__DIR__.'/../../../img/icon.png', 'thumbnail');
$image->setDensity(2);
$this->assertEquals($image->getContext(), 'thumbnail');
$this->assertEquals($image->getDensity(), 2);
}
public function testImage3x()
$image->setDensity(3);
$this->assertEquals($image->getDensity(), 3);