SkladovyPohybPolozkaTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Test\FlexiPeeHP;
4
5
use \FlexiPeeHP\SkladovyPohybPolozka;
6
7
/**
8
 * Generated by PHPUnit_SkeletonGenerator on 2018-04-24 at 20:29:30.
9
 */
10
class SkladovyPohybPolozkaTest extends FlexiBeeRWTest
11
{
12
    /**
13
     * @var SkladovyPohybPolozka
14
     */
15
    protected $object;
16
17
    /**
18
     * Sets up the fixture, for example, opens a network connection.
19
     * This method is called before a test is executed.
20
     */
21
    protected function setUp(): void
22
    {
23
        $this->object = new SkladovyPohybPolozka();
24
    }
25
26
    /**
27
     * Tears down the fixture, for example, closes a network connection.
28
     * This method is called after a test is executed.
29
     */
30
    protected function tearDown(): void
31
    {
32
        
33
    }
34
35
    /**
36
     * @covers FlexiPeeHP\SkladovyPohybPolozka::addSerialNumber
37
     */
38
    public function testAddSerialNumber()
39
    {
40
        $this->object->addSerialNumber('1');
0 ignored issues
show
Bug introduced by
'1' of type string is incompatible with the type FlexiPeeHP\type expected by parameter $number of FlexiPeeHP\SkladovyPohybPolozka::addSerialNumber(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

40
        $this->object->addSerialNumber(/** @scrutinizer ignore-type */ '1');
Loading history...
41
        $this->object->addSerialNumber('2', true);
0 ignored issues
show
Bug introduced by
true of type true is incompatible with the type FlexiPeeHP\type expected by parameter $isMain of FlexiPeeHP\SkladovyPohybPolozka::addSerialNumber(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

41
        $this->object->addSerialNumber('2', /** @scrutinizer ignore-type */ true);
Loading history...
42
        $this->object->addSerialNumber('3');
43
        $this->assertEquals([
0 ignored issues
show
Bug introduced by
The method assertEquals() does not exist on Test\FlexiPeeHP\SkladovyPohybPolozkaTest. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

43
        $this->/** @scrutinizer ignore-call */ 
44
               assertEquals([

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
44
            'mnozMj' => 3,
45
            'vyrobniCislaPrijata' => [
46
                ['kod' => '1'],
47
                ['kod' => '2', 'vyrobnicislohlav' => 1],
48
                ['kod' => '3']
49
            ]
50
            ], $this->object->getData());
51
    }
52
}
53