getSamplePhpArray() public static method

Return a sample array
public static getSamplePhpArray ( ) : array
return array Sample array
Ejemplo n.º 1
0
 /**
  * Testing contructor and load functions
  */
 public function testLoad()
 {
     $mock = $this->getMockBuilder('Cascade\\Config\\ConfigLoader')->disableOriginalConstructor()->setMethods(array('load'))->getMock();
     $array = Fixtures::getSamplePhpArray();
     $mock->expects($this->once())->method('load')->willReturn($array);
     $config = new Config(array(''), $mock);
     $config->load();
 }
Ejemplo n.º 2
0
 /**
  * Test supports with a valid array
  */
 public function testSupports()
 {
     $array = Fixtures::getSamplePhpArray();
     $this->assertTrue($this->arrayLoader->supports($array));
 }