/** * Test for getImgPath * * @param string $file file name for image * @param string $output expected output * * @return void * * @dataProvider providerForGetImgPath */ public function testGetImgPath($file, $output) { $this->assertEquals( $this->object->getImgPath($file), $output ); }
/** * @covers PMA_Theme::getImgPath * @covers PMA_Theme::setImgPath */ public function testGetSetImgPath() { $this->assertEmpty($this->object->getImgPath(), 'ImgPath is empty by default'); $this->object->setImgPath('/new/path'); $this->assertEquals('/new/path', $this->object->getImgPath()); }