function CoderReviewSnifferTest::__construct in Coder 7.2
Constructor that creates a CoderReviewSnifferTest instance.
Parameters
string|null $id: (optional) The test identifier. Defaults to NULL.
File
- coder_review/
tests/ coder_review_sniffer.test, line 20
Class
- CoderReviewSnifferTest
- Class to test for the coder sniffer rules.
Code
function __construct($id = NULL) {
// Remove the Drupal autoloading classes so that CodeSniffer can load it's
// own classes. Without this, these tests would need to run with
// DrupalWebTestCase instead of DrupalUnitTestCase.
spl_autoload_unregister('drupal_autoload_class');
spl_autoload_unregister('drupal_autoload_interface');
parent::__construct('sniffer', $id);
}