getSampleYamlString() public static method

Return the fixture sample Yaml string
public static getSampleYamlString ( ) : string
return string Sample yaml string
 /**
  * Test loading config from a valid file
  */
 public function testReadFrom()
 {
     $this->assertEquals(Fixtures::getSampleYamlString(), $this->mock->readFrom(Fixtures::getSampleYamlFile()));
 }
Example #2
0
 /**
  * Test loading a Yaml string
  */
 public function testSupportsWithYamlString()
 {
     $this->yamlLoader->expects($this->once())->method('isFile')->willReturn(false);
     $yaml = Fixtures::getSampleYamlString();
     $this->assertTrue($this->yamlLoader->supports($yaml));
 }