示例#1
0
 /**
  * @test
  */
 public function applicationFolderBothFiles()
 {
     DefaultConfiguration::initialize('_both');
     IniParser::initialize();
     $this->assertSame('b', Configuration::get('unittest', 'foo'));
     $this->assertSame('42', Configuration::get('unittest', 'bar'));
     $this->assertNull(Configuration::get('unittest', 'baz'));
 }
示例#2
0
 /**
  * @param string $application
  * @throws \Exception
  */
 protected static function initializeConfiguration($application)
 {
     Configuration::reset();
     DefaultConfiguration::initialize($application);
     IniParser::initialize();
 }
 /**
  * @test
  * @expectedException \AppZap\PHPFramework\Mvc\ApplicationPartMissingException
  * @expectedExceptionCode 1410538265
  */
 public function notExistingApplicationFolder()
 {
     DefaultConfiguration::initialize('not_existing');
 }