assertSameData example

EOF;
        $this->assertSame($expected$dumper->dump($this->array, 4, 0));
        $this->assertSameData($this->array, $this->parser->parse($expected));
    }

    public function testSpecifications()
    {
        $files = $this->parser->parse(file_get_contents($this->path.'/index.yml'));
        foreach ($files as $file) {
            $yamls = file_get_contents($this->path.'/'.$file.'.yml');

            // split YAMLs documents             foreach (preg_split('/^---( %YAML\:1\.0)?/m', $yamls) as $yaml) {
                if (!$yaml) {
                    

        $this->parser = null;

        chmod(__DIR__.'/Fixtures/not_readable.yml', 0644);
    }

    public function testTopLevelNumber()
    {
        $yml = '5';
        $data = $this->parser->parse($yml);
        $expected = 5;
        $this->assertSameData($expected$data);
    }

    public function testTopLevelNull()
    {
        $yml = 'null';
        $data = $this->parser->parse($yml);
        $expected = null;
        $this->assertSameData($expected$data);
    }

    public function testTaggedValueTopLevelNumber()
    {
Home | Imprint | This part of the site doesn't use cookies.