<commit_before><?php
/**
 * This file is part of vfsStream.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @package  org\bovigo\vfs
 */
namespace org\bovigo\vfs;
/**
 * @group  issue_104
 */
class Issue104TestCase extends \PHPUnit_Framework_TestCase
{
    /**
     * @test
     */
    public function vfsStreamCanHandleUrlEncodedPathPassedByInternalPhpCode()
    {
        $structure = array('foo bar' => array(
                'schema.xsd' => '<xs:schema targetNamespace="http://www.example.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                                    <xs:complexType name="myType"></xs:complexType>
                                </xs:schema>',
                )
        );
        vfsStream::setup('root', null, $structure);
        $doc = new \DOMDocument();
        $this->assertTrue($doc->load(vfsStream::url('root/foo bar/schema.xsd')));
    }

    /**<commit_msg>add note about when it was added<commit_after><?php
/**
 * This file is part of vfsStream.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @package  org\bovigo\vfs
 */
namespace org\bovigo\vfs;
/**
 * @group  issue_104
 * @since  1.5.0
 */
class Issue104TestCase extends \PHPUnit_Framework_TestCase
{
    /**
     * @test
     */
    public function vfsStreamCanHandleUrlEncodedPathPassedByInternalPhpCode()
    {
        $structure = array('foo bar' => array(
                'schema.xsd' => '<xs:schema targetNamespace="http://www.example.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                                    <xs:complexType name="myType"></xs:complexType>
                                </xs:schema>',
                )
        );
        vfsStream::setup('root', null, $structure);
        $doc = new \DOMDocument();
        $this->assertTrue($doc->load(vfsStream::url('root/foo bar/schema.xsd')));
    }

    /**
{'fraction_non_alphanumeric': 0.14043824701195218, 'fraction_numerical': 0.01245019920318725, 'mean_word_length': 2.304276315789474, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2552282', 'n_tokens_mistral': 613, 'n_tokens_neox': 590, 'n_words': 126}