function CoderUpgrade6xTest::testUpgrade6xNodeAPI in Coder 6
Same name and namespace in other branches
- 6.2 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xNodeAPI()
File
- tests/
coder_6x.test, line 200
Class
Code
function testUpgrade6xNodeAPI() {
$this
->assertCoderFail(" function mymodule_nodeapi() {\n switch (\$op) {\n case 'submit': return;\n }\n}");
$this
->assertCoderFail(" function mymodule_nodeapi() {\n if (\$op == 'submit') {\n }\n}");
}