ffmpeg-mappable-media/tests/FFMpeg/Unit/Coordinate/PointTest.php

24 lines
536 B
PHP
Raw Normal View History

2013-06-25 10:03:20 +02:00
<?php
namespace Tests\FFMpeg\Unit\Coordinate;
2013-06-25 10:03:20 +02:00
use FFMpeg\Coordinate\Point;
use Tests\FFMpeg\Unit\TestCase;
2013-06-25 10:03:20 +02:00
class PointTest extends TestCase
{
public function testGetters()
{
$point = new Point(4, 25);
$this->assertEquals(4, $point->getX());
$this->assertEquals(25, $point->getY());
}
2017-09-19 10:44:11 +09:00
public function testDynamicPointGetters()
{
$point = new Point('t*100', 't', true);
$this->assertEquals('t*100', $point->getX());
$this->assertEquals('t', $point->getY());
2017-09-19 10:44:11 +09:00
}
2013-06-25 10:03:20 +02:00
}