function CoderUpgrade6xTest::testUpgrade6xNodeAPI in Coder 6.2
Same name and namespace in other branches
- 6 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xNodeAPI()
File
- tests/
coder_6x.test, line 207
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}");
}