Cascade\Tests\Fixtures::getSamplePhpArray PHP Method

getSamplePhpArray() public static method

Return a sample array
public static getSamplePhpArray ( ) : array
return array Sample array
    public static function getSamplePhpArray()
    {
        return array('greeting' => 'hello', 'to' => 'you');
    }

Usage Example

 /**
  * 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();
 }
All Usage Examples Of Cascade\Tests\Fixtures::getSamplePhpArray