You are here

function CoderReviewStyleTest::testStyleTabs in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/tests/coder_review_style.test \CoderReviewStyleTest::testStyleTabs()

Tests for the correct formatting of tab character in code.

File

coder_review/tests/coder_review_style.test, line 46

Class

CoderReviewStyleTest
Class to test for the style of the required Drupal coding standards.

Code

function testStyleTabs() {
  $this
    ->assertCoderReviewPass('// Tab in	comment');
  $this
    ->assertCoderReviewPass('$var = "tab in	double quote"');
  $this
    ->assertCoderReviewPass('$var = \'tab in	single quote\'');
  $this
    ->assertCoderReviewFail('	$var = "tab in line";');
}