You are here

public function IssuesTest::test_extend_issue80 in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/tests/tests_extend.php \IssuesTest::test_extend_issue80()

File

phamlp/tests/tests_extend.php, line 7

Class

IssuesTest

Code

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);
}