<commit_before><?php
/**
 * phpDocumentor
 *
 * PHP Version 5.3
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2010-2012 <NAME> / Naenius (http://www.naenius.com)
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
 * @link      http://phpdoc.org
 */

namespace phpDocumentor\Transformer\Writer;

use Mockery\MockInterface;
use Mockery as m;

/**
 * Test class for phpDocumentor\Transformer\Writer\Collection
 */
class CollectionTest extends \PHPUnit_Framework_TestCase
{
    /** @var MockInterface|Queue */
    protected $routers;

    /** @var MockInterface|Xsl */
    protected $writer;
    
    /**
     * Initializes the fixture and dependencies for this testcase.
     */
    public function setUp()
    {
        $this->routers = m::mock('phpDocumentor\Transformer\Router\Queue');
        $this->writer = m::mock('phpDocumentor\Plugin\Core\Transformer\Writer\Xsl');
        $this->fixture = new Collection($this->routers);
    }
    
    /**
     * Registers a writer for tests that need a collection item
     */
    private function registerWriter()
    {<commit_msg>New correction in CollectionTest<commit_after><?php
/**
 * phpDocumentor
 *
 * PHP Version 5.3
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2010-2012 <NAME> / Naenius (http://www.naenius.com)
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
 * @link      http://phpdoc.org
 */

namespace phpDocumentor\Transformer\Writer;

use Mockery\MockInterface;
use Mockery as m;
use phpDocumentor\Transformer\Router\Queue;
use phpDocumentor\Plugin\Core\Transformer\Writer\Xsl;

/**
 * Test class for phpDocumentor\Transformer\Writer\Collection
 */
class CollectionTest extends \PHPUnit_Framework_TestCase
{
    /** @var MockInterface|Queue */
    protected $routers;

    /** @var MockInterface|Xsl */
    protected $writer;
    
    /** @var Collection $fixture */
    protected $fixture;
    /**
     * Initializes the fixture and dependencies for this testcase.
     */
    public function setUp()
    {
        $this->routers = m::mock('phpDocumentor\Transformer\Router\Queue');
        $this->writer = m::mock('phpDocumentor\Plugin\Core\Transformer\Writer\Xsl');
        $this->fixture = new Collection($this->routers);
    }
    
    /**
     * Registers a writer for tests that need a collection item
     */
    private function registerWriter()
    {
{'fraction_non_alphanumeric': 0.1331923890063425, 'fraction_numerical': 0.008456659619450317, 'mean_word_length': 3.0444444444444443, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6719481', 'n_tokens_mistral': 735, 'n_tokens_neox': 710, 'n_words': 158}