Exemplo n.º 1
0
 public function testOneliner()
 {
     $file = new ConfigFile($this->examples_path . '/test.oneliner.php');
     $this->assertSame(12, $file->getOption('OMG'));
 }
Exemplo n.º 2
0
 /**
  * Test if booleans are properly parsed
  */
 public function testParsingBoolean()
 {
     $this->assertSame(true, $this->config_file->getOption('THIS_IS_TRUE'));
     $this->assertSame(false, $this->config_file->getOption('THIS_IS_FALSE'));
 }