|
19 | 19 |
|
20 | 20 | class ProcessorTest extends TestCase |
21 | 21 | { |
22 | | - const TEST_CONTENT = 'test-content'; |
| 22 | + private const TEST_CONTENT = 'test-content'; |
23 | 23 |
|
24 | | - const ASSET_PATH = 'test-path'; |
| 24 | + private const ASSET_PATH = 'test-path'; |
25 | 25 |
|
26 | | - const TMP_PATH_LESS = '_file/test.less'; |
27 | | - const TMP_PATH_CSS_PRODUCTION = '_file/test-production.css'; |
28 | | - const TMP_PATH_CSS_DEVELOPER = '_file/test-developer.css'; |
| 26 | + private const TMP_PATH_LESS = '_file/test.less'; |
| 27 | + private const TMP_PATH_CSS_PRODUCTION = '_file/test-production.css'; |
| 28 | + private const TMP_PATH_CSS_DEVELOPER = '_file/test-developer.css'; |
29 | 29 |
|
30 | | - const ERROR_MESSAGE = 'Test exception'; |
| 30 | + private const ERROR_MESSAGE = 'Test exception'; |
31 | 31 |
|
32 | 32 | /** |
33 | 33 | * @var Processor |
@@ -179,8 +179,16 @@ public function testProcessContentNotEmpty() |
179 | 179 |
|
180 | 180 | $clearSymbol = ["\n", "\r", "\t", ' ']; |
181 | 181 | self::assertEquals( |
182 | | - trim(str_replace($clearSymbol, '', file_get_contents(__DIR__ . '/' . self::TMP_PATH_CSS_PRODUCTION))), |
183 | | - trim(str_replace($clearSymbol, '', $this->processor->processContent($assetMock))) |
| 182 | + trim(str_replace( |
| 183 | + $clearSymbol, |
| 184 | + '', |
| 185 | + file_get_contents(__DIR__ . '/' . self::TMP_PATH_CSS_PRODUCTION) |
| 186 | + )), |
| 187 | + trim(str_replace( |
| 188 | + $clearSymbol, |
| 189 | + '', |
| 190 | + $this->processor->processContent($assetMock) |
| 191 | + )) |
184 | 192 | ); |
185 | 193 | } |
186 | 194 |
|
@@ -214,8 +222,16 @@ public function testProcessContentNotEmptyInDeveloperMode() |
214 | 222 |
|
215 | 223 | $clearSymbol = ["\n", "\r", "\t", ' ']; |
216 | 224 | self::assertEquals( |
217 | | - trim(str_replace($clearSymbol, '', file_get_contents(__DIR__ . '/' . self::TMP_PATH_CSS_DEVELOPER))), |
218 | | - trim(str_replace($clearSymbol, '', $this->normalizeInlineSourceMap($this->processor->processContent($assetMock)))) |
| 225 | + trim(str_replace( |
| 226 | + $clearSymbol, |
| 227 | + '', |
| 228 | + file_get_contents(__DIR__ . '/' . self::TMP_PATH_CSS_DEVELOPER) |
| 229 | + )), |
| 230 | + trim(str_replace( |
| 231 | + $clearSymbol, |
| 232 | + '', |
| 233 | + $this->normalizeInlineSourceMap($this->processor->processContent($assetMock)) |
| 234 | + )) |
219 | 235 | ); |
220 | 236 | } |
221 | 237 |
|
|
0 commit comments