<commit_before><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace ZendTest\ServiceManager;

use PHPUnit_Framework_TestCase as TestCase;

/**
 * @requires PHP 5.4.0
 * @group    Zend_ServiceManager
 */
class MutableCreationOptionsAwareTraitTest extends TestCase
{
    protected $stub;

    public function setUp()
    {
        $this->stub = $this->getObjectForTrait('\Zend\ServiceManager\MutableCreationOptionsAwareTrait');
    }

    public function tearDown()
    {
        unset($this->stub);
    }

    public function testCreationOptionsInitiallyIsArray()
    {
        $this->assertAttributeEquals(Array(), 'creationOptions', $this->stub);
    }

    public function testTraitProvidesSetter()
    {
        $this->assertTrue(
            method_exists($this->stub, 'setCreationOptions')
        );
    }

    public function testTraitProvidesGetter()
    {
        $this->assertTrue(
            method_exists($this->stub, 'getCreationOptions')
        );
    }
<commit_msg>* explicitly skipping unit tests on PHP Version < 5.4  as "@require" wouldn't suffice<commit_after><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace ZendTest\ServiceManager;

use PHPUnit_Framework_TestCase as TestCase;

/**
 * @requires PHP 5.4.0
 * @group    Zend_ServiceManager
 */
class MutableCreationOptionsAwareTraitTest extends TestCase
{
    protected $stub;

    public function setUp()
    {
        if (PHP_VERSION_ID < 50400) {
            $this->markTestSkipped('Requires PHP >=5.4.0');
        }
        $this->stub = $this->getObjectForTrait('\Zend\ServiceManager\MutableCreationOptionsAwareTrait');
    }

    public function tearDown()
    {
        unset($this->stub);
    }

    public function testCreationOptionsInitiallyIsArray()
    {
        $this->assertAttributeEquals(Array(), 'creationOptions', $this->stub);
    }

    public function testTraitProvidesSetter()
    {
        $this->assertTrue(
            method_exists($this->stub, 'setCreationOptions')
        );
    }

    public function testTraitProvidesGetter()
    {
        $this->assertTrue(
            method_exists($this->stub, 'getCreationOptions')
        );
    }

{'fraction_non_alphanumeric': 0.12247946228528753, 'fraction_numerical': 0.012696041822255415, 'mean_word_length': 2.9985074626865673, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4033857', 'n_tokens_mistral': 823, 'n_tokens_neox': 793, 'n_words': 156}