Esempio n. 1
0
    /**
     *
     * @covers PMA_Theme::setPath
     * @covers PMA_Theme::getPath
     */
    public function testGetSetPath()
    {
        $this->assertEmpty($this->object->getPath());
        $this->object->setPath('./themes/original');

        $this->assertEquals('./themes/original', $this->object->getPath());
    }
Esempio n. 2
0
 /**
  * returns theme object loaded from given folder
  * or false if theme is invalid
  *
  * @static
  * @param   string  path to theme
  * @return  object  PMA_Theme
  */
 function load($folder)
 {
     $theme = new PMA_Theme();
     $theme->setPath($folder);
     if (!$theme->loadInfo()) {
         return false;
     }
     $theme->checkImgPath();
     return $theme;
 }