/**
  * @testdox encode() tests
  * @dataProvider getEncodeTests
  */
 public function testEncode($original, $expected)
 {
     $stylesheetCompressor = new StylesheetCompressor();
     $this->assertSame($expected, $stylesheetCompressor->encode($original));
 }
Example #2
0
 /**
  * Return the JavaScript representation of the stylesheet
  *
  * @return string
  */
 protected function getStylesheet()
 {
     return $this->stylesheetCompressor->encode($this->xsl);
 }