<commit_before><?php

namespace Sokil\Mongo\Migrator;

class ManagerMock extends \Sokil\Mongo\Migrator\Manager
{
    public function resetCollection($environment)
    {
        $this->getLogCollection($environment)->delete();
    }
}

class ManagerTest extends \PHPUnit_Framework_TestCase
{
    private $_manager;
    
    public function setUp()
    {
        $configFile = __DIR__ . '/' . \Sokil\Mongo\Migrator\Console\Command::CONFIG_FILENAME;
        $config = new Config($configFile);
        
        $this->_manager = new ManagerMock($config);
    }
    
    public function testGetAvailableRevisions()
    {<commit_msg>remove log collection<commit_after><?php

namespace Sokil\Mongo\Migrator;

class ManagerMock extends \Sokil\Mongo\Migrator\Manager
{
    public function resetCollection($environment)
    {
        $this->getLogCollection($environment)->delete();
    }
}

class ManagerTest extends \PHPUnit_Framework_TestCase
{
    private $_manager;
    
    public function setUp()
    {
        $configFile = __DIR__ . '/' . \Sokil\Mongo\Migrator\Console\Command::CONFIG_FILENAME;
        $config = new Config($configFile);
        
        $this->_manager = new ManagerMock($config);
    }
    
    public function tearDown()
    {
        $this->_manager->resetCollection('staging');
    }
    
    public function testGetAvailableRevisions()
    {
{'fraction_non_alphanumeric': 0.11298606016140866, 'fraction_numerical': 0.0, 'mean_word_length': 2.9883040935672516, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1420757', 'n_tokens_mistral': 403, 'n_tokens_neox': 402, 'n_words': 70}