예제 #1
0
 public function testImageInterface()
 {
     $image = new ArticleImage(self::ARTICLE_NUMBER, new LocalImage(self::PICTURE_LANDSCAPE));
     $this->assertEquals(self::PICTURE_LANDSCAPE, $image->getPath());
     $this->assertEquals(500, $image->getWidth());
     $this->assertEquals(333, $image->getHeight());
     $this->assertFalse($image->isDefault());
 }