コード例 #1
0
ファイル: AssetTest.php プロジェクト: robbytaylor/boom-core
 public function testIsImage()
 {
     $image = new Asset([Asset::ATTR_TYPE => 'image']);
     $this->assertTrue($image->isImage());
     $notAnImage = new Asset([Asset::ATTR_TYPE => 'video']);
     $this->assertFalse($notAnImage->isImage());
     $empty = new Asset();
     $this->assertFalse($empty->isImage());
 }