1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AppBundle\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:33. |
7
|
|
|
*/ |
8
|
|
View Code Duplication |
class ZoneStorageTest extends \PHPUnit_Framework_TestCase { |
|
|
|
|
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* @var ZoneStorage |
12
|
|
|
*/ |
13
|
|
|
protected $object; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* Sets up the fixture, for example, opens a network connection. |
17
|
|
|
* This method is called before a test is executed. |
18
|
|
|
*/ |
19
|
|
|
protected function setUp() { |
20
|
|
|
$this->object = new ZoneStorage; |
21
|
|
|
} |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Tears down the fixture, for example, closes a network connection. |
25
|
|
|
* This method is called after a test is executed. |
26
|
|
|
*/ |
27
|
|
|
protected function tearDown() { |
28
|
|
|
|
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @covers AppBundle\Entity\ZoneStorage::getId |
33
|
|
|
* @todo Implement testGetId(). |
34
|
|
|
*/ |
35
|
|
|
public function testGetId() { |
36
|
|
|
// Remove the following lines when you implement this test. |
37
|
|
|
$this->markTestIncomplete( |
38
|
|
|
'This test has not been implemented yet.' |
39
|
|
|
); |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @covers AppBundle\Entity\ZoneStorage::setName |
44
|
|
|
* @todo Implement testSetName(). |
45
|
|
|
*/ |
46
|
|
|
public function testSetName() { |
47
|
|
|
// Remove the following lines when you implement this test. |
48
|
|
|
$this->markTestIncomplete( |
49
|
|
|
'This test has not been implemented yet.' |
50
|
|
|
); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @covers AppBundle\Entity\ZoneStorage::getName |
55
|
|
|
* @todo Implement testGetName(). |
56
|
|
|
*/ |
57
|
|
|
public function testGetName() { |
58
|
|
|
// Remove the following lines when you implement this test. |
59
|
|
|
$this->markTestIncomplete( |
60
|
|
|
'This test has not been implemented yet.' |
61
|
|
|
); |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @covers AppBundle\Entity\ZoneStorage::__toString |
66
|
|
|
* @todo Implement test__toString(). |
67
|
|
|
*/ |
68
|
|
|
public function test__toString() { |
69
|
|
|
// Remove the following lines when you implement this test. |
70
|
|
|
$this->markTestIncomplete( |
71
|
|
|
'This test has not been implemented yet.' |
72
|
|
|
); |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
} |
76
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.