Beispiel #1
0
 private function load($name)
 {
     $result = $this->loader->load(__DIR__ . '/../../../../../Resources/DataFixtures/Page/' . $name);
     return $result;
 }
Beispiel #2
0
 /**
  * bad format
  *
  * @covers Phossa\Config\Loader\XmlLoader::load()
  * @expectedException Phossa\Config\Exception\LogicException
  * @expectedExceptionMessageRegExp "Opening"
  * @expectedExceptionCode Phossa\Config\Message\Message::CONFIG_FORMAT_ERROR
  */
 public function testLoad3()
 {
     $this->assertEquals(['test' => 'wow'], XmlLoader::load(__DIR__ . '/conf/config_bad.xml'));
 }