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); }
/** * 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); }