File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Sabberworm \CSS ;
4
4
5
- global $ TEST_CSS ;
6
-
7
- $ TEST_CSS = <<<EOT
5
+ class OutputFormatTest extends \PHPUnit \Framework \TestCase
6
+ {
7
+ /**
8
+ * @var string
9
+ */
10
+ const TEST_CSS = <<<EOT
8
11
9
12
.main, .test {
10
13
font: italic normal bold 16px/1.2 "Helvetica", Verdana, sans-serif;
21
24
22
25
EOT ;
23
26
24
- class OutputFormatTest extends \PHPUnit \Framework \TestCase
25
- {
26
27
private $ oParser ;
27
28
private $ oDocument ;
28
29
29
30
protected function setUp ()
30
31
{
31
- global $ TEST_CSS ;
32
- $ this ->oParser = new Parser ($ TEST_CSS );
32
+ $ this ->oParser = new Parser (self ::TEST_CSS );
33
33
$ this ->oDocument = $ this ->oParser ->parse ();
34
34
}
35
35
@@ -52,8 +52,7 @@ public function testCompact()
52
52
53
53
public function testPretty ()
54
54
{
55
- global $ TEST_CSS ;
56
- $ this ->assertSame ($ TEST_CSS , $ this ->oDocument ->render (OutputFormat::createPretty ()));
55
+ $ this ->assertSame (self ::TEST_CSS , $ this ->oDocument ->render (OutputFormat::createPretty ()));
57
56
}
58
57
59
58
public function testSpaceAfterListArgumentSeparator ()
You can’t perform that action at this time.
0 commit comments