<commit_before><?php
/**
 * Code Coverage Driver 
 *
 * @copyright 2013 <NAME>
 * @license BSD-2-Clause
 */

namespace LeanPHP\Behat\CodeCoverage\Common\Driver;

use VIPSoft\TestCase;
use LeanPHP\Behat\CodeCoverage\Common\Driver\Stub;

/**
 * Stub driver test
 *
 * @group Unit
 */
class StubTest extends TestCase
{
    /**
     * @requires OS Linux
     */
    public function testGetterSetter()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');

        $driver = new Stub();
        $this->assertTrue($driver->getDriver() === null);

        $driver->setDriver($mock);
        $this->assertTrue($driver->getDriver() === $mock);
    }

    /**
     * @requires OS Linux
     */
    public function testStart()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
        $mock->expects($this->once())
             ->method('start');

        $driver = new Stub();
        $driver->setDriver($mock);
        $driver->start();
    }

    /**
     * @requires OS Linux
     */
    public function testStop()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
        $mock->expects($this->once())
             ->method('stop');

        $driver = new Stub();
        $driver->setDriver($mock);
        $driver->stop();
    }

    /**
     * @requires OS WIN
     */
    public function testGetterSetter()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_PHPDBG');

        $driver = new Stub();
        $this->assertTrue($driver->getDriver() === null);

        $driver->setDriver($mock);
        $this->assertTrue($driver->getDriver() === $mock);
    }

    /**
     * @requires OS WIN
     */
    public function testStart()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_PHPDBG');
        $mock->expects($this->once())
             ->method('start');

        $driver = new Stub();
        $driver->setDriver($mock);
        $driver->start();
    }

    /**
     * @requires OS WIN
     */
    public function testStop()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_PHPDBG');
        $mock->expects($this->once())
             ->method('stop');

        $driver = new Stub();
        $driver->setDriver($mock);
        $driver->stop();
    }

}<commit_msg>SubTest fix test names for Windows/Linux OS<commit_after><?php
/**
 * Code Coverage Driver 
 *
 * @copyright 2013 <NAME>
 * @license BSD-2-Clause
 */

namespace LeanPHP\Behat\CodeCoverage\Common\Driver;

use VIPSoft\TestCase;
use LeanPHP\Behat\CodeCoverage\Common\Driver\Stub;

/**
 * Stub driver test
 *
 * @group Unit
 */
class StubTest extends TestCase
{
    /**
     * @requires OS Linux
     */
    public function testGetterSetterXdebug()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');

        $driver = new Stub();
        $this->assertTrue($driver->getDriver() === null);

        $driver->setDriver($mock);
        $this->assertTrue($driver->getDriver() === $mock);
    }

    /**
     * @requires OS Linux
     */
    public function testStartXdebug()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
        $mock->expects($this->once())
             ->method('start');

        $driver = new Stub();
        $driver->setDriver($mock);
        $driver->start();
    }

    /**
     * @requires OS Linux
     */
    public function testStopXdebug()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_Xdebug');
        $mock->expects($this->once())
             ->method('stop');

        $driver = new Stub();
        $driver->setDriver($mock);
        $driver->stop();
    }

    /**
     * @requires OS WIN
     */
    public function testGetterSetterPHPDBG()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_PHPDBG');

        $driver = new Stub();
        $this->assertTrue($driver->getDriver() === null);

        $driver->setDriver($mock);
        $this->assertTrue($driver->getDriver() === $mock);
    }

    /**
     * @requires OS WIN
     */
    public function testStartPHPDBG()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_PHPDBG');
        $mock->expects($this->once())
             ->method('start');

        $driver = new Stub();
        $driver->setDriver($mock);
        $driver->startPHPDBG();
    }

    /**
     * @requires OS WIN
     */
    public function testStopPHPDBG()
    {
        $mock = $this->getMock('PHP_CodeCoverage_Driver_PHPDBG');
        $mock->expects($this->once())
             ->method('stop');

        $driver = new Stub();
        $driver->setDriver($mock);
        $driver->stop();
    }

}
{'fraction_non_alphanumeric': 0.1705780095610604, 'fraction_numerical': 0.0021729682746631897, 'mean_word_length': 2.2099023709902372, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 77, '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': '5903646', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1418, 'n_words': 238}