Example #1
0
 public function testGetAndDefineNotFound()
 {
     $configvalue = new ConfigValue();
     $store = $this->getStoreMock();
     $store->expects($this->once())->method('get')->with($this->equalTo('testGetAndDefineNotFound'))->will($this->returnValue($configvalue));
     Config::setStore($store);
     Config::getAndDefine('testGetAndDefineNotFound', 'honden');
     $this->assertTrue(defined('testGetAndDefineNotFound'));
     $this->assertEquals(testGetAndDefineNotFound, 'honden');
 }