<commit_before><?php
declare(strict_types=1);
namespace Viserio\Component\Log\Tests\Providers;

use Monolog\Logger;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
use Viserio\Component\Container\Container;
use Viserio\Component\Contracts\Log\Log;
use Viserio\Component\Log\HandlerParser;
use Viserio\Component\Log\Providers\LoggerServiceProvider;
use Viserio\Component\Log\Writer as MonologWriter;
use Viserio\Component\OptionsResolver\Providers\OptionsResolverServiceProvider;

class LoggerServiceProviderTest extends TestCase
{
    public function testProvider()
    {
        $container = new Container();
        $container->register(new OptionsResolverServiceProvider());
        $container->register(new LoggerServiceProvider());

        $container->instance('config', [
            'viserio' => [
                'log' => [
                    'env' => 'dev',
                ],
            ],
        ]);

        self::assertInstanceOf(HandlerParser::class, $container->get(HandlerParser::class));
        self::assertInstanceOf(MonologWriter::class, $container->get(LoggerInterface::class));
        self::assertInstanceOf(MonologWriter::class, $container->get(MonologWriter::class));
        self::assertInstanceOf(MonologWriter::class, $container->get(Logger::class));
        self::assertInstanceOf(MonologWriter::class, $container->get(Log::class));
        self::assertInstanceOf(MonologWriter::class, $container->get('logger'));
    }
}<commit_msg>Added all missing tests for HttpFactory<commit_after><?php
declare(strict_types=1);
namespace Viserio\Component\Log\Tests\Providers;

use Monolog\Logger;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
use Viserio\Component\Container\Container;
use Viserio\Component\Contracts\Events\EventManager as EventManagerContract;
use Viserio\Component\Contracts\Log\Log;
use Viserio\Component\Events\Providers\EventsServiceProvider;
use Viserio\Component\Log\HandlerParser;
use Viserio\Component\Log\Providers\LoggerServiceProvider;
use Viserio\Component\Log\Writer as MonologWriter;
use Viserio\Component\OptionsResolver\Providers\OptionsResolverServiceProvider;

class LoggerServiceProviderTest extends TestCase
{
    public function testProvider()
    {
        $container = new Container();
        $container->register(new OptionsResolverServiceProvider());
        $container->register(new EventsServiceProvider());
        $container->register(new LoggerServiceProvider());

        $container->instance('config', [
            'viserio' => [
                'log' => [
                    'env' => 'dev',
                ],
            ],
        ]);

        self::assertInstanceOf(HandlerParser::class, $container->get(HandlerParser::class));
        self::assertInstanceOf(MonologWriter::class, $container->get(LoggerInterface::class));
        self::assertInstanceOf(MonologWriter::class, $container->get(MonologWriter::class));
        self::assertInstanceOf(MonologWriter::class, $container->get(Logger::class));
        self::assertInstanceOf(MonologWriter::class, $container->get(Log::class));
        self::assertInstanceOf(EventManagerContract::class, $container->get(MonologWriter::class)->getEventManager());
        self::assertInstanceOf(MonologWriter::class, $container->get('logger'));
    }
}
{'fraction_non_alphanumeric': 0.13117237200848228, 'fraction_numerical': 0.0006058770069675856, 'mean_word_length': 4.351701782820097, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 30, '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': '4220145', 'n_tokens_mistral': 887, 'n_tokens_neox': 875, 'n_words': 125}