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

namespace ZendTest\Stdlib;

use Zend\Stdlib\SubClass;

class SubClassTest extends \PHPUnit_Framework_TestCase
{
    protected function setUp()
    {
        if (version_compare(PHP_VERSION, '5.3.7', '>=')) {
            $this->markTestSkipped('Test is only for PHP Versions smaller then 5.3.7');
        }
        require_once 'TestAsset/DummySubclasses.php';
    }

    public function testIsSubclassOf()
    {
        $test1 = SubClass::isSubclassOf('ZendTest\Stdlib\TestAsset\ChildClass', 'ZendTest\Stdlib\TestAsset\TestInterface');
        $test2 = SubClass::isSubclassOf('ZendTest\Stdlib\TestAsset\ParentClass', 'ZendTest\Stdlib\TestAsset\TestInterface');
        $this->assertTrue($test1);
        $this->assertTrue($test2);
    }

    public function testIsSubclassOfStripsTralingNamespaceSeparator()
    {
        $test = SubClass::isSubclassOf('\ZendTest\Stdlib\TestAsset\ChildClass', '\ZendTest\Stdlib\TestAsset\TestInterface');
        $this->assertTrue($test);
    }

    public function testIsSubclassOfIsCaseInsensitve()
    {
        $test = SubClass::isSubclassOf('ZendTest\Stdlib\TestAsset\chiLdCLAss', 'ZendTest\Stdlib\TestAsset\testinterface');
        $this->assertTrue($test);
    }
}<commit_msg>removed old test cases, that are not neccessary any more<commit_after><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 * @package   Zend_Stdlib
 */

namespace ZendTest\Stdlib;

use Zend\Stdlib\SubClass;

class SubClassTest extends \PHPUnit_Framework_TestCase
{
    protected function setUp()
    {
        if (version_compare(PHP_VERSION, '5.3.7', '>=')) {
            $this->markTestSkipped('Test is only for PHP Versions smaller then 5.3.7');
        }
        require_once 'TestAsset/DummySubclasses.php';
    }

    public function testIsSubclassOf()
    {
        $test1 = SubClass::isSubclassOf('ZendTest\Stdlib\TestAsset\ChildClass', 'ZendTest\Stdlib\TestAsset\TestInterface');
        $test2 = SubClass::isSubclassOf('ZendTest\Stdlib\TestAsset\ParentClass', 'ZendTest\Stdlib\TestAsset\TestInterface');
        $this->assertTrue($test1);
        $this->assertTrue($test2);
    }

}
{'fraction_non_alphanumeric': 0.13306302985624768, 'fraction_numerical': 0.014006634721710284, 'mean_word_length': 3.5922165820642977, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6419701', 'n_tokens_mistral': 888, 'n_tokens_neox': 866, 'n_words': 149}