SilverStripe\TestSession\TestSessionStubCodeWriter::write
Writes arbitrary PHP code to {@link $filePath} for later inclusion.
Creates the file if it doesn't exist. Adds debug information about the origin of this code if is set.
Signature
public function write(String
$php,
[boolean
$eval = true] )
Parameters
$php
— object- Block of PHP code (without preceding <?php)
$eval
— boolean- Sanity check on code.