35 lines
799 B
PHP
35 lines
799 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|