Completed
Push — master ( d2c88c...854f25 )
by Rafael
03:52
created

ClassUtilsTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRelatedBundleNamespace() 0 6 1
1
<?php
2
/*******************************************************************************
3
 *  This file is part of the GraphQL Bundle package.
4
 *
5
 *  (c) YnloUltratech <[email protected]>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 ******************************************************************************/
10
11
namespace Ynlo\GraphQLBundle\Test\Util;
12
13
use PHPUnit\Framework\TestCase;
14
use Ynlo\GraphQLBundle\Util\ClassUtils;
15
16
class ClassUtilsTest extends TestCase
17
{
18
19
    public function testRelatedBundleNamespace()
20
    {
21
        self::assertEquals('AppBundle', ClassUtils::relatedBundleNamespace('AppBundle\Entity\User'));
22
        self::assertEquals('AppBundle', ClassUtils::relatedBundleNamespace('AppBundle\User'));
23
        self::assertEquals('Ynlo\GraphQLBundle\Demo\AppBundle', ClassUtils::relatedBundleNamespace('Ynlo\GraphQLBundle\Demo\AppBundle\Test'));
24
        self::assertEquals('AppBundle', ClassUtils::relatedBundleNamespace('AppBundle\Test\HelloBundleName'));
25
    }
26
}
27