|
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(); |
|
|
|
|
|
|
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
|
|
|
} |
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..