Cascade\Tests\Fixtures::getSampleYamlFile PHP Method

getSampleYamlFile() public static method

Return the fixture sample Yaml file
public static getSampleYamlFile ( ) : string
return string Path to a sample yaml file
    public static function getSampleYamlFile()
    {
        return self::fixtureDir() . '/fixture_sample.yml';
    }

Usage Example

Example #1
0
 /**
  * Test loading a Yaml file
  */
 public function testSupportsWithYamlFile()
 {
     $this->yamlLoader->expects($this->once())->method('isFile')->willReturn(true);
     $this->yamlLoader->expects($this->once())->method('validateExtension')->willReturn(true);
     $yamlFile = Fixtures::getSampleYamlFile();
     $this->assertTrue($this->yamlLoader->supports($yamlFile));
 }
All Usage Examples Of Cascade\Tests\Fixtures::getSampleYamlFile