<commit_before><?php

/*
 * This file is part of the Autoloader package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Exorg\Autoloader;

/**
 * Psr4AutoloadingStrategyTest.
 * PHPUnit test class for Psr4AutoloadingStrategy class.
 *
 * @package Autoloader
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2015 <NAME>
 * @license http://http://opensource.org/licenses/MIT MIT License
 * @link https://github.com/ExOrg/php-autoloader
 */
class Psr4AutoloadingStrategyTest extends AbstractAutoloadingStrategyTest
{
    /**
     * Initialise strategy fixture.
     */
    protected function initialiseStrategy()
    {
        $this->strategy = new Psr4AutoloadingStrategy();
    }

    /**
     * Test Exorg\Autoloader\Psr4AutoloadingStrategy class exists.
     */
    public function testConstructorReturnsProperInstance()
    {
        $strategy = new Psr4AutoloadingStrategy();

        $this->assertInstanceOf('Exorg\Autoloader\Psr4AutoloadingStrategy', $strategy);
    }

    /**
     * Test Psr0AutoloadingStrategy class implements AutoloadingStrategyInterface.
     */
    public function testImplementsAutoloadingStrategyInterace()
    {
        $strategy = new Psr4AutoloadingStrategy();

        $this->assertImplements($strategy, 'Exorg\Autoloader\AutoloadingStrategyInterface');
    }

/**
     * Test registerNamespacePath method
     * for nonexisting path.
     */
    public function testForNonexistentPath()
    {
        $path = $this->getFullFixturePath('/nonexistent');<commit_msg>PSR-4 Autoloading Strategy PHPDoc updated (#7)<commit_after><?php

/*
 * This file is part of the Autoloader package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Exorg\Autoloader;

/**
 * Psr4AutoloadingStrategyTest.
 * PHPUnit test class for Psr4AutoloadingStrategy class.
 *
 * @package Autoloader
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2015 <NAME>
 * @license http://http://opensource.org/licenses/MIT MIT License
 * @link https://github.com/ExOrg/php-autoloader
 */
class Psr4AutoloadingStrategyTest extends AbstractAutoloadingStrategyTest
{
    /**
     * Initialise strategy fixture.
     */
    protected function initialiseStrategy()
    {
        $this->strategy = new Psr4AutoloadingStrategy();
    }

    /**
     * Test Exorg\Autoloader\Psr4AutoloadingStrategy class exists.
     */
    public function testConstructorReturnsProperInstance()
    {
        $strategy = new Psr4AutoloadingStrategy();

        $this->assertInstanceOf('Exorg\Autoloader\Psr4AutoloadingStrategy', $strategy);
    }

    /**
     * Test Psr0AutoloadingStrategy class implements AutoloadingStrategyInterface.
     */
    public function testImplementsAutoloadingStrategyInterace()
    {
        $strategy = new Psr4AutoloadingStrategy();

        $this->assertImplements($strategy, 'Exorg\Autoloader\AutoloadingStrategyInterface');
    }

    /**
     * Test registerNamespacePath method
     * for nonexisting path.
     */
    public function testForNonexistentPath()
    {
        $path = $this->getFullFixturePath('/nonexistent');
{'fraction_non_alphanumeric': 0.1060927553804183, 'fraction_numerical': 0.008487420430433464, 'mean_word_length': 3.4534412955465585, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5380048', 'n_tokens_mistral': 1017, 'n_tokens_neox': 994, 'n_words': 214}