You are here

function CoderReviewSecurityTest::testSecurityEval in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_review/tests/coder_review_security.test \CoderReviewSecurityTest::testSecurityEval()

File

coder_review/tests/coder_review_security.test, line 243

Class

CoderReviewSecurityTest

Code

function testSecurityEval() {
  $this
    ->assertCoderReviewFail('  return drupal_eval($code);');
  $this
    ->assertCoderReviewFail('  print eval($code);');
}