SilverStripe\TestSession\TestSessionStubCodeWriter
Writes PHP to a file which can be included in SilverStripe runs on existence.
The generated file is included in page execution through .
Synopsis
class TestSessionStubCodeWriter
{
- // methods
- public void __construct()
- public void write()
- public void reset()
- public void getFilePath()
- public void getDebug()
- public void setDebug()
Members
protected
- $debug — boolean
- $filePath — SilverStripe\TestSession\String
Methods
public
- __construct()
- getDebug()
- getFilePath()
- reset()
- setDebug()
- write() — Writes arbitrary PHP code to {@link $filePath} for later inclusion.