public void testGetStringValue() {
Expression e = null;
String result = YiiCodeUtils.getStringValue(e);
assertEquals("", result);
Scalar scalar = new Scalar(0, 0, "1", Scalar.Type.INT);
assertEquals("", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "test", Scalar.Type.REAL);
assertEquals("", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "test", Scalar.Type.UNKNOWN);
assertEquals("", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "test", Scalar.Type.SYSTEM);
assertEquals("", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "'test'", Scalar.Type.STRING);
assertEquals("test", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "\"test\"", Scalar.Type.STRING);
assertEquals("test", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "'\"test\"'", Scalar.Type.STRING);
assertEquals("\"test\"", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "'tes\"t'", Scalar.Type.STRING);
assertEquals("tes\"t", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "\"t'est\"", Scalar.Type.STRING);
assertEquals("t'est", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "''", Scalar.Type.STRING);
assertEquals("", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "\"\"", Scalar.Type.STRING);
assertEquals("", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "'", Scalar.Type.STRING);
assertEquals("", YiiCodeUtils.getStringValue(scalar));
scalar = new Scalar(5, 5, "", Scalar.Type.STRING);
assertEquals("", YiiCodeUtils.getStringValue(scalar));
}