1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-02 12:21:09 +02:00
Files
minify/tests/MinifyImportProcessorTest.php
Elan Ruusamäe b31855f6b8 Apply php-cs-fixer fixers
- braces
- function_declaration
- lowercase_keywords
- method_argument_space
- no_spaces_inside_parenthesis
- no_trailing_whitespace
- no_trailing_whitespace_in_comment
- single_blank_line_at_eof
2020-04-03 10:47:27 +03:00

33 lines
962 B
PHP

<?php
namespace Minify\Test;
use Minify_ImportProcessor;
class MinifyImportProcessorTest extends TestCase
{
public function test()
{
$linDir = self::$test_files . '/importProcessor';
$expected = file_get_contents($linDir . '/css/output.css');
$actual = Minify_ImportProcessor::process($linDir . '/css/input.css');
$this->assertSame($expected, $actual, 'ImportProcessor');
$expectedIncludes = array(
realpath($linDir . '/css/input.css'),
realpath($linDir . '/css/adjacent.css'),
realpath($linDir . '/../css/styles.css'),
realpath($linDir . '/css/1/tv.css'),
realpath($linDir . '/css/1/adjacent.css'),
realpath($linDir . '/lib/css/example.css'),
);
$this->assertEquals(
$expectedIncludes,
Minify_ImportProcessor::$filesIncluded,
'included right files in right order'
);
}
}