<commit_before><?php
/**
 * AbstractFactoryTest.php
 *
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright 2012 - 2013, raidler dot com
 */
namespace ZendTest\Config;

use Zend\Config\AbstractConfigFactory;
use Zend\Config\Config;
use Zend\Mvc\Service\ServiceManagerConfig;
use Zend\ServiceManager\ServiceManager;

/**
 * Class AbstractFactoryTest
 */
class AbstractFactoryTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var \Zend\Mvc\Application
     */
    protected $application;

    /**
     * @var \Zend\ServiceManager\ServiceManager
     */
    protected $serviceManager;

    /**
     * @return void
     */
    public function setUp()
    {
        $config = array(
            'MyModule\Config' => array(
                'foo' => array(
                    'bar'
                )
            )
        );

        $sm = $this->serviceManager = new ServiceManager(
            new ServiceManagerConfig(array(
                'abstract_factories' => array(
                    'Zend\Config\AbstractConfigFactory',
                )
            ))
        );

        $sm->setService('Config', $config);
    }
<commit_msg>wrong key ...<commit_after><?php
/**
 * AbstractFactoryTest.php
 *
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright 2012 - 2013, raidler dot com
 */
namespace ZendTest\Config;

use Zend\Config\AbstractConfigFactory;
use Zend\Config\Config;
use Zend\Mvc\Service\ServiceManagerConfig;
use Zend\ServiceManager\ServiceManager;

/**
 * Class AbstractFactoryTest
 */
class AbstractFactoryTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var \Zend\Mvc\Application
     */
    protected $application;

    /**
     * @var \Zend\ServiceManager\ServiceManager
     */
    protected $serviceManager;

    /**
     * @return void
     */
    public function setUp()
    {
        $config = array(
            'MyModule' => array(
                'foo' => array(
                    'bar'
                )
            )
        );

        $sm = $this->serviceManager = new ServiceManager(
            new ServiceManagerConfig(array(
                'abstract_factories' => array(
                    'Zend\Config\AbstractConfigFactory',
                )
            ))
        );

        $sm->setService('Config', $config);
    }

{'fraction_non_alphanumeric': 0.12131868131868132, 'fraction_numerical': 0.007032967032967033, 'mean_word_length': 1.8701134930643126, 'pattern_counts': {'":': 0, '<': 11, '<?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': '4617949', 'n_tokens_mistral': 660, 'n_tokens_neox': 618, 'n_words': 120}