Version 0.3

This commit is contained in:
Romain Neutron 2013-06-25 10:03:20 +02:00
commit ad3a5af623
130 changed files with 7283 additions and 2627 deletions

View file

@ -0,0 +1,38 @@
<?php
namespace FFMpeg\Tests\Coordinate;
use FFMpeg\Tests\TestCase;
use FFMpeg\Coordinate\Dimension;
class DimensionTest extends TestCase
{
/**
* @dataProvider provideInvalidDimensions
* @expectedException FFMpeg\Exception\InvalidArgumentException
*/
public function testInvalidDimensions($width, $height)
{
new Dimension($width, $height);
}
public function provideInvalidDimensions()
{
return array(
array(320, 0),
array(320, -10),
array(0, 240),
array(-10, 240),
array(0, 0),
array(0, -10),
array(-10, 0),
);
}
public function testGetters()
{
$dimension = new Dimension(320, 240);
$this->assertEquals(320, $dimension->getWidth());
$this->assertEquals(240, $dimension->getHeight());
}
}