PATH:
home
/
lab2454c
/
healthvalidate.com
/
vendor
/
cloudinary
/
cloudinary_php
/
tests
/
Unit
/
Asset
<?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\Asset; use Cloudinary\Asset\Video; use Cloudinary\Transformation\AspectRatio; use Cloudinary\Transformation\Qualifier\Dimensions\Width; use Cloudinary\Transformation\Scale; /** * Class VideoTest */ final class VideoTest extends AssetTestCase { public function testVideo() { $v = new Video(self::VIDEO_NAME); $v->resize(Scale::scale(new Width(100), 200)->aspectRatio(AspectRatio::ignoreInitialAspectRatio())); $t_expected = 'c_scale,fl_ignore_aspect_ratio,h_200,w_100'; self::assertEquals( $t_expected, (string)$v->getTransformation() ); self::assertVideoUrl( "{$t_expected}/".self::VIDEO_NAME, (string)$v ); } }
[-] VideoTest.php
[edit]
[-] AuthTokenTestCase.php
[edit]
[-] MediaFromParamsTest.php
[edit]
[+]
..
[-] AuthTokenTest.php
[edit]
[-] AssetTestCase.php
[edit]
[-] FileTest.php
[edit]
[-] AssetTransformationTest.php
[edit]
[-] MediaTest.php
[edit]
[-] ImageTest.php
[edit]
[-] DistributionTest.php
[edit]
[-] AssetAuthTokenTest.php
[edit]
[-] AnalyticsTest.php
[edit]