You are here

class IssuesTest in Sassy 7

Same name in this branch
  1. 7 phamlp/tests/tests_compass.php \IssuesTest
  2. 7 phamlp/tests/tests_issues.php \IssuesTest
  3. 7 phamlp/tests/tests_ifs.php \IssuesTest
  4. 7 phamlp/tests/tests_extend.php \IssuesTest
  5. 7 phamlp/tests/tests_variables.php \IssuesTest
  6. 7 phamlp/tests/tests_interpolator.php \IssuesTest
Same name and namespace in other branches
  1. 7.3 phpsass/tests/tests_compass.php \IssuesTest
  2. 7.3 phpsass/tests/tests_issues.php \IssuesTest
  3. 7.3 phpsass/tests/tests_ifs.php \IssuesTest
  4. 7.3 phpsass/tests/tests_extend.php \IssuesTest
  5. 7.3 phpsass/tests/tests_variables.php \IssuesTest
  6. 7.3 phpsass/tests/tests_interpolator.php \IssuesTest

Hierarchy

Expanded class hierarchy of IssuesTest

File

phamlp/tests/tests_extend.php, line 5

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

}

Members