YAML config file

This commit is contained in:
Pierre Rudloff 2015-10-31 15:42:25 +01:00
parent 8d4cf18360
commit 5249df52e6
15 changed files with 168 additions and 67 deletions

34
tests/ConfigTest.php Normal file
View file

@ -0,0 +1,34 @@
<?php
/**
* ConfigTest class
*
* PHP Version 5.3.10
*
* @category Youtube-dl
* @package Youtubedl
* @author Pierre Rudloff <contact@rudloff.pro>
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
* @link http://rudloff.pro
* */
use Alltube\Config;
/**
* Unit tests for the Config class
*
* PHP Version 5.3.10
*
* @category Youtube-dl
* @package Youtubedl
* @author Pierre Rudloff <contact@rudloff.pro>
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
* @link http://rudloff.pro
* */
class ConfigTest extends PHPUnit_Framework_TestCase
{
public function testGetInstance()
{
putenv('CONVERT=1');
$config = Config::getInstance();
$this->assertEquals($config->convert, true);
}
}

View file

@ -11,7 +11,6 @@
* @link http://rudloff.pro
* */
use Alltube\VideoDownload;
require_once __DIR__.'/../common.php';
/**
* Unit tests for the VideoDownload class