@@ -35,43 +35,6 @@ protected function setUp(): void
3535 $ this ->coverage = new CodeCoverage ;
3636 }
3737
38- public function testCanBeConstructedWithoutGivenFilterObject (): void
39- {
40- if (\extension_loaded ('xdebug ' )) {
41- $ expectedClass = Xdebug::class;
42- }
43-
44- if (\PHP_SAPI === 'phpdbg ' ) {
45- $ expectedClass = PHPDBG ::class;
46- }
47-
48- $ this ->assertAttributeInstanceOf (
49- $ expectedClass ,
50- 'driver ' ,
51- $ this ->coverage
52- );
53-
54- $ this ->assertAttributeInstanceOf (
55- Filter::class,
56- 'filter ' ,
57- $ this ->coverage
58- );
59- }
60-
61- public function testCanBeConstructedWithGivenFilterObject (): void
62- {
63- $ filter = new Filter ;
64- $ coverage = new CodeCoverage (null , $ filter );
65-
66- $ this ->assertAttributeInstanceOf (
67- Xdebug::class,
68- 'driver ' ,
69- $ coverage
70- );
71-
72- $ this ->assertSame ($ filter , $ coverage ->filter ());
73- }
74-
7538 public function testCannotStopWithInvalidSecondArgument (): void
7639 {
7740 $ this ->expectException (Exception::class);
@@ -86,99 +49,6 @@ public function testCannotAppendWithInvalidArgument(): void
8649 $ this ->coverage ->append ([], null );
8750 }
8851
89- public function testSetCacheTokens (): void
90- {
91- $ this ->coverage ->setCacheTokens (true );
92-
93- $ this ->assertAttributeEquals (true , 'cacheTokens ' , $ this ->coverage );
94- }
95-
96- public function testSetCheckForUnintentionallyCoveredCode (): void
97- {
98- $ this ->coverage ->setCheckForUnintentionallyCoveredCode (true );
99-
100- $ this ->assertAttributeEquals (
101- true ,
102- 'checkForUnintentionallyCoveredCode ' ,
103- $ this ->coverage
104- );
105- }
106-
107- public function testSetCheckForMissingCoversAnnotation (): void
108- {
109- $ this ->coverage ->setCheckForMissingCoversAnnotation (true );
110-
111- $ this ->assertAttributeEquals (
112- true ,
113- 'checkForMissingCoversAnnotation ' ,
114- $ this ->coverage
115- );
116- }
117-
118- public function testSetForceCoversAnnotation (): void
119- {
120- $ this ->coverage ->setForceCoversAnnotation (true );
121-
122- $ this ->assertAttributeEquals (
123- true ,
124- 'forceCoversAnnotation ' ,
125- $ this ->coverage
126- );
127- }
128-
129- public function testSetCheckForUnexecutedCoveredCode (): void
130- {
131- $ this ->coverage ->setCheckForUnexecutedCoveredCode (true );
132-
133- $ this ->assertAttributeEquals (
134- true ,
135- 'checkForUnexecutedCoveredCode ' ,
136- $ this ->coverage
137- );
138- }
139-
140- public function testSetAddUncoveredFilesFromWhitelist (): void
141- {
142- $ this ->coverage ->setAddUncoveredFilesFromWhitelist (true );
143-
144- $ this ->assertAttributeEquals (
145- true ,
146- 'addUncoveredFilesFromWhitelist ' ,
147- $ this ->coverage
148- );
149- }
150-
151- public function testSetProcessUncoveredFilesFromWhitelist (): void
152- {
153- $ this ->coverage ->setProcessUncoveredFilesFromWhitelist (true );
154-
155- $ this ->assertAttributeEquals (
156- true ,
157- 'processUncoveredFilesFromWhitelist ' ,
158- $ this ->coverage
159- );
160- }
161-
162- public function testSetIgnoreDeprecatedCode (): void
163- {
164- $ this ->coverage ->setIgnoreDeprecatedCode (true );
165-
166- $ this ->assertAttributeEquals (
167- true ,
168- 'ignoreDeprecatedCode ' ,
169- $ this ->coverage
170- );
171- }
172-
173- public function testClear (): void
174- {
175- $ this ->coverage ->clear ();
176-
177- $ this ->assertAttributeEquals (null , 'currentId ' , $ this ->coverage );
178- $ this ->assertAttributeEquals ([], 'data ' , $ this ->coverage );
179- $ this ->assertAttributeEquals ([], 'tests ' , $ this ->coverage );
180- }
181-
18252 public function testCollect (): void
18353 {
18454 $ coverage = $ this ->getCoverageForBankAccount ();
0 commit comments