Test Failed
Push — master ( 1ea845...275c2e )
by Vítězslav
03:06
created

SkladovyPohybPolozkaTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 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 \PHPUnit_Framework_TestCase
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()
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()
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
The method addSerialNumber() does not seem to exist on object<FlexiPeeHP\SkladovyPohybPolozka>.

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...
41
        $this->object->addSerialNumber('2', true);
0 ignored issues
show
Bug introduced by
The method addSerialNumber() does not seem to exist on object<FlexiPeeHP\SkladovyPohybPolozka>.

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...
42
        $this->object->addSerialNumber('3');
0 ignored issues
show
Bug introduced by
The method addSerialNumber() does not seem to exist on object<FlexiPeeHP\SkladovyPohybPolozka>.

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...
43
        $this->assertEquals([
44
            'mnozMj' => 3,
45
            'vyrobniCislaPrijata' => [
46
                ['kod' => '1'],
47
                ['kod' => '2', 'vyrobnicislohlav' => 1],
48
                ['kod' => '3']
49
            ]
50
            ], $this->object->getData());
51
    }
52
}
53