<commit_before><?php
use PhpBrew\Testing\CommandTestCase;

class ExtensionCommandTest extends CommandTestCase
{
    /**
     * @outputBuffering enabled
     */
    public function testListCommand() {
        ob_start();
        $this->assertTrue($this->runCommand('phpbrew ext'));
        ob_end_clean();
    }

    public function extensionNameProvider() {
        return array(
            array('APCu', 'latest')
        );
    }

    /**
     * @outputBuffering enabled
     * @dataProvider extensionNameProvider
     */
    public function testInstallCommand($extensionName, $extensionVersion) {
        ob_start();
        $this->assertTrue($this->runCommand("phpbrew --quiet ext install $extensionName $extensionVersion"));
        $this->assertTrue($this->runCommand("phpbrew --quiet ext show $extensionName"));
        $this->assertTrue($this->runCommand("phpbrew --quiet ext clean $extensionName"));
        ob_end_clean();
    }


}<commit_msg>improve ext installer test suite<commit_after><?php
use PhpBrew\Testing\CommandTestCase;

class ExtensionCommandTest extends CommandTestCase
{
    public function extensionNameProvider() {
        return array(
            array('APCu', 'latest')
        );
    }

    /**
     * @outputBuffering enabled
     * @dataProvider extensionNameProvider
     */
    public function testExtInstallCommand($extensionName, $extensionVersion) {
        ob_start();
        $this->assertTrue($this->runCommand("phpbrew --quiet ext install $extensionName $extensionVersion"));
        ob_end_clean();
    }

    /**
     * @outputBuffering enabled
     * @dataProvider extensionNameProvider
     * @depends testExtInstallCommand
     */
    public function testExtShowCommand($extensionName, $extensionVersion) {
        ob_start();
        $this->assertTrue($this->runCommand("phpbrew --quiet ext show $extensionName"));
        ob_end_clean();
    }



    /**
     * @outputBuffering enabled
     * @dataProvider extensionNameProvider
     * @depends testExtInstallCommand
     */
    public function testExtCleanCommand($extensionName, $extensionVersion) {
        ob_start();
        $this->assertTrue($this->runCommand("phpbrew --quiet ext clean $extensionName"));
        ob_end_clean();
    }

    /**
     * @outputBuffering enabled
     * @depends testExtInstallCommand
     */
    public function testExtListCommand() {
        ob_start();
        $this->assertTrue($this->runCommand('phpbrew ext --show-path --show-options'));
        ob_end_clean();
    }


}
{'fraction_non_alphanumeric': 0.12166998011928429, 'fraction_numerical': 0.0, 'mean_word_length': 2.9374021909233177, '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': '520805', 'n_tokens_mistral': 672, 'n_tokens_neox': 659, 'n_words': 130}