File tree 2 files changed +32
-27
lines changed
2 files changed +32
-27
lines changed Original file line number Diff line number Diff line change 2
2
namespace PHP_Parallel_Lint \PhpConsoleColor \Test ;
3
3
4
4
use PHP_Parallel_Lint \PhpConsoleColor \ConsoleColor ;
5
+ use PHP_Parallel_Lint \PhpConsoleColor \Test \Fixtures \ConsoleColorWithForceSupport ;
5
6
use PHPUnit \Framework \TestCase ;
6
7
7
- class ConsoleColorWithForceSupport extends ConsoleColor
8
- {
9
- private $ isSupportedForce = true ;
10
-
11
- private $ are256ColorsSupportedForce = true ;
12
-
13
- public function setIsSupported ($ isSupported )
14
- {
15
- $ this ->isSupportedForce = $ isSupported ;
16
- }
17
-
18
- public function isSupported ()
19
- {
20
- return $ this ->isSupportedForce ;
21
- }
22
-
23
- public function setAre256ColorsSupported ($ are256ColorsSupported )
24
- {
25
- $ this ->are256ColorsSupportedForce = $ are256ColorsSupported ;
26
- }
27
-
28
- public function are256ColorsSupported ()
29
- {
30
- return $ this ->are256ColorsSupportedForce ;
31
- }
32
- }
33
-
34
8
class ConsoleColorTest extends TestCase
35
9
{
36
10
/** @var ConsoleColorWithForceSupport */
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace PHP_Parallel_Lint \PhpConsoleColor \Test \Fixtures ;
3
+
4
+ use PHP_Parallel_Lint \PhpConsoleColor \ConsoleColor ;
5
+
6
+ class ConsoleColorWithForceSupport extends ConsoleColor
7
+ {
8
+ private $ isSupportedForce = true ;
9
+
10
+ private $ are256ColorsSupportedForce = true ;
11
+
12
+ public function setIsSupported ($ isSupported )
13
+ {
14
+ $ this ->isSupportedForce = $ isSupported ;
15
+ }
16
+
17
+ public function isSupported ()
18
+ {
19
+ return $ this ->isSupportedForce ;
20
+ }
21
+
22
+ public function setAre256ColorsSupported ($ are256ColorsSupported )
23
+ {
24
+ $ this ->are256ColorsSupportedForce = $ are256ColorsSupported ;
25
+ }
26
+
27
+ public function are256ColorsSupported ()
28
+ {
29
+ return $ this ->are256ColorsSupportedForce ;
30
+ }
31
+ }
You can’t perform that action at this time.
0 commit comments