Initial Revision
[ohcount] / test / unit / php_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class PhpTest < LingoTest
4         def test_comment
5                 lb = [Ohcount::LanguageBreakdown.new("php", "<?php\n?>", "//comment\n", 0)]
6                 assert_equal lb, Ohcount::parse("<?php\n //comment\n?>", "php")
7         end
8
9         def test_comprehensive
10                 verify_parse("php1.php")
11         end
12 end