Exemplo n.º 1
0
 public function testGetterAndSetter()
 {
     $tags = array('tag_a', 'tag_b');
     $url = '/mnt/video/123/23435.mp4';
     $path = '/mnt/video/123/23435.mp4';
     $mime = 'image/jpg';
     $size = 3456;
     $width = 800;
     $height = 600;
     $hide = true;
     // Change assertTrue accordingly.
     $pic = new Pic();
     $pic->setTags($tags);
     $pic->setUrl($url);
     $pic->setPath($path);
     $pic->setMimeType($mime);
     $pic->setSize($size);
     $pic->setWidth($width);
     $pic->setHeight($height);
     $pic->setHide($hide);
     $this->assertEquals($tags, $pic->getTags());
     $this->assertEquals($url, $pic->getUrl());
     $this->assertEquals($path, $pic->getPath());
     $this->assertEquals($mime, $pic->getMimeType());
     $this->assertEquals($size, $pic->getSize());
     $this->assertEquals($width, $pic->getWidth());
     $this->assertEquals($height, $pic->getHeight());
     $this->assertTrue($pic->getHide());
 }