Completed
Push — master ( fea5ff...68f225 )
by Vítězslav
04:39
created

FlexiBeeRWTest   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 59
rs 10
wmc 5
lcom 1
cbo 2

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 4 1
A testGetLastInsertedId() 0 4 1
A testInsertToFlexiBee() 0 7 1
A testDeleteFromFlexiBee() 0 7 1
1
<?php
2
3
namespace Test\FlexiPeeHP;
4
5
use FlexiPeeHP\FlexiBeeRW;
6
7
/**
8
 * Generated by PHPUnit_SkeletonGenerator on 2016-05-04 at 10:08:36.
9
 */
10
class FlexiBeeRWTest extends FlexiBeeROTest
11
{
12
    /**
13
     * @var FlexiBeeRO
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
     * @covers FlexiPeeHP\FlexiBeeRW::__construct
21
     */
22
    protected function setUp()
23
    {
24
        $this->object = new FlexiBeeRW();
0 ignored issues
show
Documentation Bug introduced by
It seems like new \FlexiPeeHP\FlexiBeeRW() of type object<FlexiPeeHP\FlexiBeeRW> is incompatible with the declared type object<Test\FlexiPeeHP\FlexiBeeRO> of property $object.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
25
    }
26
27
    /**
28
     * Tears down the fixture, for example, closes a network connection.
29
     * This method is called after a test is executed.
30
     */
31
    protected function tearDown()
32
    {
33
        
34
    }
35
36
    /**
37
     * @covers FlexiPeeHP\FlexiBeeRW::getLastInsertedId
38
     * @depends testInsertToFlexiBee
39
     */
40
    public function testGetLastInsertedId()
41
    {
42
        $this->assertNotEmpty($this->object->getLastInsertedId());
43
    }
44
45
    /**
46
     * @covers FlexiPeeHP\FlexiBeeRW::insertToFlexiBee
47
     * @todo   Implement testInsertToFlexiBee().
48
     */
49
    public function testInsertToFlexiBee()
50
    {
51
        // Remove the following lines when you implement this test.
52
        $this->markTestIncomplete(
53
            'This test has not been implemented yet.'
54
        );
55
    }
56
57
    /**
58
     * @covers FlexiPeeHP\FlexiBeeRWRW::deleteFromFlexiBee
59
     * @todo   Implement test
60
     */
61
    public function testDeleteFromFlexiBee()
62
    {
63
        // Remove the following lines when you implement this test.
64
        $this->markTestIncomplete(
65
            'This test has not been implemented yet.'
66
        );
67
    }
68
}