You are here

tests_extend.php in Sassy 7

File

phamlp/tests/tests_extend.php
View source
<?php

include "test_inc.php";
class IssuesTest extends ScssUnitTest {
  public function test_extend_issue80() {
    $source = <<<END
.test {
\tcolor: green;
\t&:hover { color: red; }
}
.test2 {
    @extend .test;
}
END;
    $expected = <<<END
.test, .test2 {
  color: green;
}

.test:hover, .test2:hover {
  color: red;
}
END;
    $this
      ->assertScss($source, $expected);
  }
  public function test_extend3() {
    $source = <<<END
.test {
\tcolor: green;
\ta { color: red; }
}
.test2 {
    @extend .test;
}
END;
    $expected = <<<END
.test, .test2 {
  color: green;
}

.test a, .test2 a {
  color: red;
}
END;
    $this
      ->assertScss($source, $expected);
  }

}
$unit = new IssuesTest();
$unit
  ->run();

Classes

Namesort descending Description
IssuesTest