for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use PHPUnit\Framework\TestCase;
class CommonTest extends TestCase
{
public static function setUpBeforeClass()
}
public static function tearDownAfterClass()
protected function setUp()
protected function tearDown()
public function testFunctionGetConfigKeyNotExist(){
$key = 'foo';
$cfg = get_config($key);
$this->assertNull($cfg);
public function testFunctionGetConfigKeyNotExistUsingDefaultValue(){
$expected = 'bar';
$cfg = get_config($key, $expected);
$this->assertEquals($cfg, $expected);
public function testFunctionGetConfigAfterSet(){
$c = new Config();
$c->init();
$c->set($key, $expected);