Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
a91a53f9
Commit
a91a53f9
authored
Feb 14, 2010
by
seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding a test to check for disallowed php functions
git-svn-id:
http://svn.dwoo.org/trunk@338
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
9dbd272c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
SecurityTests.php
tests/SecurityTests.php
+11
-0
No files found.
tests/SecurityTests.php
View file @
a91a53f9
...
...
@@ -69,6 +69,17 @@ class SecurityTests extends PHPUnit_Framework_TestCase
$this
->
assertEquals
(
"fooOK"
,
$this
->
dwoo
->
get
(
$tpl
,
array
(),
$this
->
compiler
));
}
/**
* @expectedException Dwoo_Exception
*/
public
function
testNotAllowedPhpFunction
()
{
$tpl
=
new
Dwoo_Template_String
(
'{strtotime("2000-01-01")}'
);
$tpl
->
forceCompilation
();
$this
->
dwoo
->
get
(
$tpl
,
array
(),
$this
->
compiler
);
}
public
function
testAllowDirectoryGetSet
()
{
$old
=
$this
->
policy
->
getAllowedDirectories
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment