예제 #1
0
파일: Test.php 프로젝트: jasny/Q
 public function testPath()
 {
     $config = Config::with('xml:' . $this->file);
     $refl = new \ReflectionProperty($config, '_path');
     $refl->setAccessible(true);
     $path = $refl->getValue($config);
     $this->assertType('Q\\Config_File', $config);
     $this->assertEquals($this->file, (string) $path);
 }
예제 #2
0
파일: DirTest.php 프로젝트: jasny/Q
 /**
  * Tests Config::with() : where dsn is path and options['ext'] and options['transformer']
  */
 public function testWith_DsnIsPathOptExtArgTr()
 {
     $config = Config::with($this->dir, array('ext' => 'yaml', 'transformer' => 'from-mock'));
     $this->checkWithTrResult($config);
 }