Cascade\Tests\Fixtures::getSampleYamlString PHP Method

getSampleYamlString() public static method

Return the fixture sample Yaml string
public static getSampleYamlString ( ) : string
return string Sample yaml string
    public static function getSampleYamlString()
    {
        return trim('---' . "\n" . 'greeting: "hello"' . "\n" . 'to: "you"' . "\n");
    }

Usage Example

 /**
  * Test loading config from a valid file
  */
 public function testReadFrom()
 {
     $this->assertEquals(Fixtures::getSampleYamlString(), $this->mock->readFrom(Fixtures::getSampleYamlFile()));
 }
All Usage Examples Of Cascade\Tests\Fixtures::getSampleYamlString