<commit_before><?php

namespace Alchemy\Zippy\Tests\FileStrategy;

use Alchemy\Zippy\AdapterContainer;
use Alchemy\Zippy\Tests\TestCase;
use Alchemy\Zippy\FileStrategy\FileStrategyInterface;

abstract class FileStrategyTestcase extends TestCase
{
    /** @test */
    public function getFileExtensionShouldReturnAnString()
    {
        $extension = $this->getStrategy()->getFileExtension();

        $this->assertNotEquals('', trim($extension));
        $this->assertInternalType('string', $extension);
    }

    /** @test */
    public function getAdaptersShouldReturnAnArrayOfAdapter()
    {
        $adapters = $this->getStrategy()->getAdapters();

        $this->assertInternalType('array', $adapters);

        foreach ($adapters as $adapter) {
            $this->assertInstanceOf('Alchemy\\Zippy\\Adapter\\AdapterInterface', $adapter);
        }
    }

    protected function getContainer()
    {<commit_msg>Fix typo<commit_after><?php

namespace Alchemy\Zippy\Tests\FileStrategy;

use Alchemy\Zippy\AdapterContainer;
use Alchemy\Zippy\Tests\TestCase;
use Alchemy\Zippy\FileStrategy\FileStrategyInterface;

abstract class FileStrategyTestCase extends TestCase
{
    /** @test */
    public function getFileExtensionShouldReturnAnString()
    {
        $extension = $this->getStrategy()->getFileExtension();

        $this->assertNotEquals('', trim($extension));
        $this->assertInternalType('string', $extension);
    }

    /** @test */
    public function getAdaptersShouldReturnAnArrayOfAdapter()
    {
        $adapters = $this->getStrategy()->getAdapters();

        $this->assertInternalType('array', $adapters);

        foreach ($adapters as $adapter) {
            $this->assertInstanceOf('Alchemy\\Zippy\\Adapter\\AdapterInterface', $adapter);
        }
    }

    protected function getContainer()
    {
{'fraction_non_alphanumeric': 0.13355227148330598, 'fraction_numerical': 0.0, 'mean_word_length': 3.57, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, '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': '1114962', 'n_tokens_mistral': 534, 'n_tokens_neox': 493, 'n_words': 83}