function testGenerateExpression() { $code_writer = new WactCodeWriter(); $component = new WactCompilerTag(null, null, null); $property = new WactCompilerProperty(); $component->registerProperty('hello', $property); $attribute = new WactAttributeExpressionFragment('hello', $component, $this->filter_dictionary); $attribute->generatePreStatement($code_writer); $attribute->generateExpression($code_writer); $attribute->generatePostStatement($code_writer); $this->assertEqual($code_writer->renderCode(), ''); }