scratch – Blame information for rev

Subversion Repositories:
Rev:
Rev Author Line No. Line
115 office 1 <?php
2  
3 namespace Tests\FFMpeg\Unit\Coordinate;
4  
5 use Tests\FFMpeg\Unit\TestCase;
6 use FFMpeg\Coordinate\Dimension;
7  
8 class DimensionTest extends TestCase
9 {
10 /**
11 * @dataProvider provideInvalidDimensions
12 * @expectedException FFMpeg\Exception\InvalidArgumentException
13 */
14 public function testInvalidDimensions($width, $height)
15 {
16 new Dimension($width, $height);
17 }
18  
19 public function provideInvalidDimensions()
20 {
21 return array(
22 array(320, 0),
23 array(320, -10),
24 array(0, 240),
25 array(-10, 240),
26 array(0, 0),
27 array(0, -10),
28 array(-10, 0),
29 );
30 }
31  
32 public function testGetters()
33 {
34 $dimension = new Dimension(320, 240);
35 $this->assertEquals(320, $dimension->getWidth());
36 $this->assertEquals(240, $dimension->getHeight());
37 }
38 }