FlitchTest\Rule\Whitespace\DisallowTabulatorsTest::testTabulators PHP Method

testTabulators() public method

public testTabulators ( )
    public function testTabulators()
    {
        $tokenizer = new Tokenizer();
        $file = $tokenizer->tokenize('foo.php', "<?php\n\t");
        $file->rewind();
        $file->seekTokenType(T_WHITESPACE);
        $rule = new DisallowTabulators();
        $rule->visitToken($file);
        $this->assertRuleViolations($file, array(array('line' => 2, 'column' => 1, 'message' => 'Tabulator found', 'source' => 'Flitch\\Whitespace\\DisallowTabulators')));
    }
DisallowTabulatorsTest