3
* Tests for the Source report of PHP_CodeSniffer.
8
* @package PHP_CodeSniffer
9
* @author Gabriele Santini <gsantini@sqli.com>
10
* @author Greg Sherwood <gsherwood@squiz.net>
11
* @copyright 2009 SQLI <www.sqli.com>
12
* @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600)
13
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
14
* @link http://pear.php.net/package/PHP_CodeSniffer
17
require_once 'PHPUnit/Framework/TestCase.php';
18
require_once dirname(__FILE__).'/AbstractTestCase.php';
21
* Tests for the Source report of PHP_CodeSniffer.
24
* @package PHP_CodeSniffer
25
* @author Gabriele Santini <gsantini@sqli.com>
26
* @author Greg Sherwood <gsherwood@squiz.net>
27
* @copyright 2009 SQLI <www.sqli.com>
28
* @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600)
29
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
30
* @version Release: 1.3.4
31
* @link http://pear.php.net/package/PHP_CodeSniffer
33
class Core_Reports_SourceTest extends Core_Reports_AbstractTestCase
38
* Test standard generation.
42
public function testGenerate()
44
$fullReport = new PHP_CodeSniffer_Reports_Source();
45
$generated = $this->getFixtureReport($fullReport);
46
$this->assertContains(
47
'A TOTAL OF 10 SNIFF VIOLATION(S) WERE FOUND IN 5 SOURCE(S)',