Completed
Push — master ( 6d7a1f...d79baf )
by Jean-Bernard
01:54
created

EngineAsArgumentControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCanBeCreated() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the Symfony Util package.
5
 *
6
 * (c) Jean-Bernard Addor
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
use SymfonyUtil\Controller\EngineAsArgumentController;
13
use PHPUnit\Framework\TestCase;
14
15
/**
16
 * @covers \SymfonyUtil\Controller\EngineAsArgumentController
17
 */
18
final class EngineAsArgumentControllerTest extends TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
19
{
20
    public function testCanBeCreated()
21
    {
22
        $this->assertInstanceOf(
23
            EngineAsArgumentController::class,
24
            new EngineAsArgumentController()
25
        );
26
    }
27
28
    /*
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
29
    public function testReturnsResponse()
30
    {
31
        $this->assertInstanceOf(
32
            Table::class,
33
            (new SchemaBuilder(new Schema()))->userTable()
34
        );
35
    }
36
    */
37
}
38