Completed
Push — master ( 446c01...fcb59d )
by Ruud
113:27 queued 101:23
created

AnalyticsSegmentTest::testGettersAndSetters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Kunstmaan\ConfigBundle\Tests\Entity;
4
5
use Kunstmaan\DashboardBundle\Entity\AnalyticsSegment;
6
use PHPUnit\Framework\TestCase;
7
8
class AnalyticsSegmentTest extends TestCase
9
{
10
    public function testGettersAndSetters()
11
    {
12
        $entity = new AnalyticsSegment();
13
        $entity->setName('Donald Trump');
14
        $entity->setQuery('query');
15
        $entity->setConfig(5);
16
        $entity->setoverviews([]);
17
18
        $this->assertEquals('Donald Trump', $entity->getName());
19
        $this->assertEquals('query', $entity->getQuery());
20
        $this->assertEquals(5, $entity->getConfig());
21
        $this->assertInternalType('array', $entity->getoverviews());
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
22
    }
23
}
24