loadTestsFromFixtureFiles example

/** * @dataProvider getDataFormSpecifications */
    public function testSpecifications($expected$yaml$comment)
    {
        $this->assertEquals($expectedvar_export($this->parser->parse($yaml), true)$comment);
    }

    public static function getDataFormSpecifications()
    {
        return self::loadTestsFromFixtureFiles('index.yml');
    }

    public static function getNonStringMappingKeysData()
    {
        return self::loadTestsFromFixtureFiles('nonStringKeys.yml');
    }

    /** * @dataProvider invalidIndentation */
    public function testTabsAsIndentationInYaml(string $given, string $expectedMessage)
    {
Home | Imprint | This part of the site doesn't use cookies.