Test Failed
Pull Request — master (#26)
by Christopher
02:51
created

xsLongTest   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 168
Duplicated Lines 100 %

Coupling/Cohesion

Components 2
Dependencies 2

Importance

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

13 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 5 5 1
A tearDown() 4 4 1
A test__toString() 7 7 1
A testSetTotalDigits() 7 7 1
A testCheckTotalDigits() 7 7 1
A testSetFractionDigits() 7 7 1
A testCheckFractionDigits() 7 7 1
A testFixFractionDigits() 7 7 1
A testSetMaxExclusive() 7 7 1
A testSetMaxInclusive() 7 7 1
A testSetMinExclusive() 7 7 1
A testSetMinInclusive() 7 7 1
A testCheckMinMax() 7 7 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
4
namespace AlgoWeb\xsdTypes;
5
6
/**
7
 * Generated Test Class.
8
 */
9 View Code Duplication
class xsLongTest extends \PHPUnit_Framework_TestCase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

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.

Loading history...
10
{
11
    /**
12
     * @var \AlgoWeb\xsdTypes\xsLong
13
     */
14
    protected $object;
15
16
    /**
17
     * Sets up the fixture, for example, opens a network connection.
18
     * This method is called before a test is executed.
19
     */
20
    protected function setUp()
21
    {
22
        parent::setUp();
23
        $this->object = new \AlgoWeb\xsdTypes\xsLong();
0 ignored issues
show
Bug introduced by
The call to xsLong::__construct() misses a required argument $value.

This check looks for function calls that miss required arguments.

Loading history...
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
        parent::tearDown();
33
    }
34
35
    /**
36
     * @covers \AlgoWeb\xsdTypes\xsLong::__toString
37
     * @todo   Implement test__toString().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
38
     */
39
    public function test__toString()
0 ignored issues
show
Coding Style introduced by
This method is not in camel caps format.

This check looks for method names that are not written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes databaseConnectionSeeker.

Loading history...
40
    {
41
        // Remove the following lines when you implement this test.
42
        $this->markTestIncomplete(
43
            'This test has not been implemented yet.'
44
        );
45
    }
46
47
48
    /**
49
     * @covers \AlgoWeb\xsdTypes\xsLong::setTotalDigits
50
     * @todo   Implement testSetTotalDigits().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
51
     */
52
    public function testSetTotalDigits()
53
    {
54
        // Remove the following lines when you implement this test.
55
        $this->markTestIncomplete(
56
            'This test has not been implemented yet.'
57
        );
58
    }
59
60
61
    /**
62
     * @covers \AlgoWeb\xsdTypes\xsLong::checkTotalDigits
63
     * @todo   Implement testCheckTotalDigits().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
64
     */
65
    public function testCheckTotalDigits()
66
    {
67
        // Remove the following lines when you implement this test.
68
        $this->markTestIncomplete(
69
            'This test has not been implemented yet.'
70
        );
71
    }
72
73
74
    /**
75
     * @covers \AlgoWeb\xsdTypes\xsLong::setFractionDigits
76
     * @todo   Implement testSetFractionDigits().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
77
     */
78
    public function testSetFractionDigits()
79
    {
80
        // Remove the following lines when you implement this test.
81
        $this->markTestIncomplete(
82
            'This test has not been implemented yet.'
83
        );
84
    }
85
86
87
    /**
88
     * @covers \AlgoWeb\xsdTypes\xsLong::checkFractionDigits
89
     * @todo   Implement testCheckFractionDigits().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
90
     */
91
    public function testCheckFractionDigits()
92
    {
93
        // Remove the following lines when you implement this test.
94
        $this->markTestIncomplete(
95
            'This test has not been implemented yet.'
96
        );
97
    }
98
99
100
    /**
101
     * @covers \AlgoWeb\xsdTypes\xsLong::fixFractionDigits
102
     * @todo   Implement testFixFractionDigits().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
103
     */
104
    public function testFixFractionDigits()
105
    {
106
        // Remove the following lines when you implement this test.
107
        $this->markTestIncomplete(
108
            'This test has not been implemented yet.'
109
        );
110
    }
111
112
113
    /**
114
     * @covers \AlgoWeb\xsdTypes\xsLong::setMaxExclusive
115
     * @todo   Implement testSetMaxExclusive().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
116
     */
117
    public function testSetMaxExclusive()
118
    {
119
        // Remove the following lines when you implement this test.
120
        $this->markTestIncomplete(
121
            'This test has not been implemented yet.'
122
        );
123
    }
124
125
126
    /**
127
     * @covers \AlgoWeb\xsdTypes\xsLong::setMaxInclusive
128
     * @todo   Implement testSetMaxInclusive().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
129
     */
130
    public function testSetMaxInclusive()
131
    {
132
        // Remove the following lines when you implement this test.
133
        $this->markTestIncomplete(
134
            'This test has not been implemented yet.'
135
        );
136
    }
137
138
139
    /**
140
     * @covers \AlgoWeb\xsdTypes\xsLong::setMinExclusive
141
     * @todo   Implement testSetMinExclusive().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
142
     */
143
    public function testSetMinExclusive()
144
    {
145
        // Remove the following lines when you implement this test.
146
        $this->markTestIncomplete(
147
            'This test has not been implemented yet.'
148
        );
149
    }
150
151
152
    /**
153
     * @covers \AlgoWeb\xsdTypes\xsLong::setMinInclusive
154
     * @todo   Implement testSetMinInclusive().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
155
     */
156
    public function testSetMinInclusive()
157
    {
158
        // Remove the following lines when you implement this test.
159
        $this->markTestIncomplete(
160
            'This test has not been implemented yet.'
161
        );
162
    }
163
164
165
    /**
166
     * @covers \AlgoWeb\xsdTypes\xsLong::checkMinMax
167
     * @todo   Implement testCheckMinMax().
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
168
     */
169
    public function testCheckMinMax()
170
    {
171
        // Remove the following lines when you implement this test.
172
        $this->markTestIncomplete(
173
            'This test has not been implemented yet.'
174
        );
175
    }
176
}
177