1
0
mirror of https://github.com/Rudloff/alltube.git synced 2024-06-26 07:29:06 +02:00
alltube/tests/ConfigTest.php

43 lines
906 B
PHP
Raw Normal View History

2015-10-31 15:42:25 +01:00
<?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
* */
2016-03-30 01:49:08 +02:00
namespace Alltube\Test;
2015-10-31 15:42:25 +01:00
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
* */
2016-03-30 01:49:08 +02:00
class ConfigTest extends \PHPUnit_Framework_TestCase
2015-10-31 15:42:25 +01:00
{
2015-10-31 15:50:32 +01:00
/**
* Test the getInstance function
2016-02-28 23:04:53 +01:00
*
2015-10-31 15:50:32 +01:00
* @return void
*/
2015-10-31 15:42:25 +01:00
public function testGetInstance()
{
putenv('CONVERT=1');
$config = Config::getInstance();
$this->assertEquals($config->convert, true);
}
}