<commit_before><?php
namespace DkplusActionArgumentsTest\Service;

use DkplusActionArguments\Service\ZfcRbacServiceDecoratorFactory;
use PHPUnit_Framework_TestCase as TestCase;

class ZfcRbacServiceDecoratorFactoryTest extends TestCase
{
    public function testShouldCreateAZfcRbacService()
    {
        $options = array(
            'identityProvider' => 'myIdentity'
        );
        $services = $this->getMockForAbstractClass('Zend\\ServiceManager\\ServiceLocatorInterface');
        $services->expects($this->any())->method('has')->with('myIdentity')->will($this->returnValue(true));
        $services->expects($this->any())
                 ->method('get')
                 ->will($this->returnValueMap(array(
                                                   array('Configuration', array('zfcrbac' => $options)),
                                                   array('identity', 'myIdentity'),
                                              )));

        $factory = new ZfcRbacServiceDecoratorFactory();
        $this->assertInstanceOf(
            'DkplusActionArguments\\Service\\ZfcRbacServiceDecorator',
            $factory->createService($services)
        );
    }
}
 <commit_msg>cs fix<commit_after><?php
namespace DkplusActionArgumentsTest\Service;

use DkplusActionArguments\Service\ZfcRbacServiceDecoratorFactory;
use PHPUnit_Framework_TestCase as TestCase;

class ZfcRbacServiceDecoratorFactoryTest extends TestCase
{
    public function testShouldCreateAZfcRbacService()
    {
        $options = array(
            'identityProvider' => 'myIdentity'
        );
        $services = $this->getMockForAbstractClass('Zend\\ServiceManager\\ServiceLocatorInterface');
        $services->expects($this->any())->method('has')->with('myIdentity')->will($this->returnValue(true));
        $services->expects($this->any())
                 ->method('get')
                 ->will($this->returnValueMap(array(
                                                   array('Configuration', array('zfcrbac' => $options)),
                                                   array('identity', 'myIdentity'),
                                              )));

        $factory = new ZfcRbacServiceDecoratorFactory();
        $this->assertInstanceOf(
            'DkplusActionArguments\\Service\\ZfcRbacServiceDecorator',
            $factory->createService($services)
        );
    }
}
{'fraction_non_alphanumeric': 0.12296110414052698, 'fraction_numerical': 0.0, 'mean_word_length': 2.21505376344086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3112777', 'n_tokens_mistral': 593, 'n_tokens_neox': 580, 'n_words': 75}