You are here

function CoderSecurityTest::testSecurityEval in Coder 6.2

File

tests/coder_security.test, line 234

Class

CoderSecurityTest

Code

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