PATH:
home
/
lab2454c
/
tripvare.com
/
backup
/
vendor
/
cloudinary
/
cloudinary_php
/
tests
/
Unit
/
Tag
<?php /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cloudinary\Test\Unit\Tag; use Cloudinary\Asset\Video; use Cloudinary\Tag\VideoThumbnailTag; use Cloudinary\Transformation\Effect; use Cloudinary\Transformation\VideoEdit; /** * Class VideoThumbnailTagTest */ final class VideoThumbnailTagTest extends ImageTagTestCase { const TAG_END = self::ASSET_ID . '.jpg">'; public function testSimpleVideoThumbnailTag() { $tag = new VideoThumbnailTag(self::VIDEO_NAME); self::assertEquals( '<img src="https://res.cloudinary.com/test123/video/upload/' . self::TAG_END, (string)$tag ); } public function testVideoThumbnailTagWithTransformation() { $video = (new Video(self::VIDEO_NAME))->trim(VideoEdit::trim(10, 20)); $tag = (new VideoThumbnailTag($video))->effect(Effect::sepia(20)); self::assertEquals( '<img src="https://res.cloudinary.com/test123/video/upload/eo_20,so_10/e_sepia:20/' . self::TAG_END, (string)$tag ); } }
[-] TestTag.php
[edit]
[+]
..
[-] ImageTagTestCase.php
[edit]
[-] FormInputTagTest.php
[edit]
[-] SpriteTagTest.php
[edit]
[+]
Patterns
[-] ImageTagTest.php
[edit]
[-] PictureTagTest.php
[edit]
[-] FormTagTest.php
[edit]
[-] UploadTagTest.php
[edit]
[-] TagTest.php
[edit]
[-] TagFromParamsTest.php
[edit]
[-] VideoTagTest.php
[edit]
[-] VideoThumbnailTagTest.php
[edit]
[-] JsConfigTagTest.php
[edit]
[-] PictureSourceTagTest.php
[edit]
[-] ClientHintsMetaTagTest.php
[edit]
[-] TagTestCase.php
[edit]