Beispiel #1
0
 function testBlockParseSpaceWithColon()
 {
     $stylus = new Stylus();
     $in = "body\n  color :black";
     $out = $stylus->fromString($in)->toString();
     $correct = "body {\n\tcolor: black;\n}\n";
     $this->assertEquals($correct, $out);
 }
Beispiel #2
0
 function testRenderingOfString()
 {
     $stylus = new Stylus();
     $in = "body\n  color black";
     $out = $stylus->fromString($in)->toString();
     $correct = "body {\n\tcolor: black;\n}\n";
     $this->assertEquals($correct, $out);
 }