-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDEV-3672 testcase for dump error with final
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
component extends="org.lucee.cfml.test.LuceeTestCase" skip=true { | ||
|
||
function beforeAll(){ | ||
variables.uri = createURI("LDEV3672"); | ||
} | ||
|
||
function run( testResults , testBox ) { | ||
|
||
describe( title='LDEV-3672' , body=function(){ | ||
|
||
it( title='dumping a cfc errors with final' , body=function() { | ||
local.result = _InternalRequest( | ||
template:"#variables.uri#/LDEV3672.cfm" | ||
); | ||
expect(local.result.filecontent.trim()).toBe('success'); | ||
}); | ||
}); | ||
} | ||
|
||
private string function createURI(string calledName){ | ||
var baseURI="/test/#listLast(getDirectoryFromPath(getCurrentTemplatepath()),"\/")#/"; | ||
return baseURI & "" & calledName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
component { | ||
this.name = "LDEV3672"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<cfscript> | ||
cfc = new LDEV3672_final(); | ||
try { | ||
savecontent variable="ignore"{ | ||
dump( cfc ); | ||
} | ||
echo( "success" ); | ||
} catch( e ){ | ||
echo( e.stacktrace ); | ||
} | ||
</cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
component { | ||
final this.test = "test" | ||
} |