/** * Tests the pack() method. * * @see \Jyxo\Css::pack() */ public function testPack() { $this->assertStringEqualsFile($this->filePath . '/pack-expected.css', Css::pack(file_get_contents($this->filePath . '/pack.css'))); // Color conversion $this->assertEquals('background:url(\'image.png\') #000 top left;color:#999;border:solid 1px #cfc', Css::pack('background: url( \'image.png\' ) #000000 top left; color: #999999; border: solid 1px #ccffcc;')); }