Esempio n. 1
0
 public function testCreateWithSucceeds()
 {
     $img = new Image([Image::PROPERTY_LOCATION => 'some/other.png', Image::PROPERTY_TITLE => 'other_title']);
     $diff_img = $img->createWith([Image::PROPERTY_LOCATION => 'omgomgomg']);
     $this->assertEquals('omgomgomg', $diff_img->getLocation());
     $this->assertEquals('other_title', $diff_img->getTitle());
     $this->assertFalse($img->similarTo($diff_img));
     $this->assertFalse($diff_img->similarTo($img));
 }