You are here

class IssuesTest in Sassy 7.3

Same name in this branch
  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
Same name and namespace in other branches
  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

Hierarchy

Expanded class hierarchy of IssuesTest

File

phpsass/tests/tests_ifs.php, line 5

View source
class IssuesTest extends ScssUnitTest {
  public function test_ifs() {
    $tests = array(
      '{ @if #ccc {color: #111; } }' => 'color: #111111;',
      '{ @if 123 {color: #222; } }' => 'color: #222222;',
      '{ @if true {color: #333; } }' => 'color: #333333;',
      '{ @if "test" {color: #444; } }' => 'color: #444444;',
      '{ @if 0 {color: #555; } }' => '',
      '{ @if 0 {color: #666; } @else {color: #777; } }' => 'color: #777777;',
    );
    $this
      ->assertScss(array_keys($tests), array_values($tests));
  }

}

Members