<commit_before><?php
namespace GetSky\Phalcon\AutoloadServices\Tests\Creators;

use Phalcon\Config;
use Phalcon\DI\FactoryDefault;
use Phalcon\DiInterface;
use PHPUnit_Framework_TestCase;
use \GetSky\Phalcon\AutoloadServices\Creators\AbstractCreator;

/**
 * Class CreatorTest
 * @package GetSky\Phalcon\AutoloadServices\Tests\Creators
 */
abstract class CreatorTest extends PHPUnit_Framework_TestCase {

    /**
     * @var AbstractCreator
     */
    protected $creator = null;

    /**
     * @var Config
     */
    protected $services = null;

    /**
     * @var DiInterface
     */
    protected $di = null;

    protected function setUp()
    {
        $this->di = new FactoryDefault();
    }
<commit_msg>Added test for 'get' and 'set' services<commit_after><?php
namespace GetSky\Phalcon\AutoloadServices\Tests\Creators;

use GetSky\Phalcon\AutoloadServices\Creators\AbstractCreator;
use Phalcon\Config;
use Phalcon\DI\FactoryDefault;
use Phalcon\DiInterface;
use PHPUnit_Framework_TestCase;

/**
 * Class CreatorTest
 * @package GetSky\Phalcon\AutoloadServices\Tests\Creators
 */
abstract class CreatorTest extends PHPUnit_Framework_TestCase
{

    /**
     * @var AbstractCreator
     */
    protected $creator = null;
    /**
     * @var Config
     */
    protected $services = null;
    /**
     * @var DiInterface
     */
    protected $di = null;

    public function testSetAndGetServices()
    {
        $save = $this->services;
        $this->creator->setService(new Config(array('test' => 'test')));
        $this->assertArrayHasKey('test',$this->creator->getService());
        $this->services = $save;
    }

    protected function setUp()
    {
        $this->di = new FactoryDefault();
    }

{'fraction_non_alphanumeric': 0.12179487179487179, 'fraction_numerical': 0.0, 'mean_word_length': 3.1274038461538463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4670833', 'n_tokens_mistral': 548, 'n_tokens_neox': 532, 'n_words': 103}