<commit_before><?php

namespace AutowpTest\Traffic\Controller;

use Zend\Test\PHPUnit\Controller\AbstractConsoleControllerTestCase;

use Autowp\Traffic\Controller\ConsoleController;

class ConsoleControllerTest extends AbstractConsoleControllerTestCase
{
    public function setUp()
    {
        $this->setApplicationConfig(include __DIR__ . '/../../../../config/application.config.php');

        parent::setUp();
    }

    public function testAutoban()
    {
        $this->dispatch('traffic autoban');

        $this->assertResponseStatusCode(0);
        $this->assertControllerName(ConsoleController::class);
        $this->assertMatchedRouteName('traffic');
        $this->assertActionName('autoban');
        $this->assertConsoleOutputContains("done");
    }

    public function testGoogle()
    {
        $this->dispatch('traffic google');

        $this->assertResponseStatusCode(0);
        $this->assertControllerName(ConsoleController::class);
        $this->assertMatchedRouteName('traffic');
        $this->assertActionName('google');
        $this->assertConsoleOutputContains("done");
    }

    public function testGc()
    {
        $this->dispatch('traffic gc');

        $this->assertResponseStatusCode(0);
        $this->assertControllerName(ConsoleController::class);
        $this->assertMatchedRouteName('traffic');
        $this->assertActionName('gc');
        $this->assertConsoleOutputContains("done");
    }
}
<commit_msg>Remove obsolete test<commit_after><?php

namespace AutowpTest\Traffic\Controller;

use Zend\Test\PHPUnit\Controller\AbstractConsoleControllerTestCase;

use Autowp\Traffic\Controller\ConsoleController;

class ConsoleControllerTest extends AbstractConsoleControllerTestCase
{
    public function setUp()
    {
        $this->setApplicationConfig(include __DIR__ . '/../../../../config/application.config.php');

        parent::setUp();
    }

    public function testAutoban()
    {
        $this->dispatch('traffic autoban');

        $this->assertResponseStatusCode(0);
        $this->assertControllerName(ConsoleController::class);
        $this->assertMatchedRouteName('traffic');
        $this->assertActionName('autoban');
        $this->assertConsoleOutputContains("done");
    }

    public function testGoogle()
    {
        $this->dispatch('traffic google');

        $this->assertResponseStatusCode(0);
        $this->assertControllerName(ConsoleController::class);
        $this->assertMatchedRouteName('traffic');
        $this->assertActionName('google');
        $this->assertConsoleOutputContains("done");
    }
}

{'fraction_non_alphanumeric': 0.137824235385211, 'fraction_numerical': 0.0019357336430507162, 'mean_word_length': 3.5413005272407734, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '4040433', 'n_tokens_mistral': 692, 'n_tokens_neox': 683, 'n_words': 88}