function CoderReviewSecurityTest::testSecurityEval in Coder 7
Same name and namespace in other branches
- 7.2 coder_review/tests/coder_review_security.test \CoderReviewSecurityTest::testSecurityEval()
File
- coder_review/
tests/ coder_review_security.test, line 243
Class
Code
function testSecurityEval() {
$this
->assertCoderReviewFail(' return drupal_eval($code);');
$this
->assertCoderReviewFail(' print eval($code);');
}