Compare a string to the contents of a file
Implementing objects are expected to modify the $_compareBasePath
property before use.
$_compareBasePath
protected string
$_updateComparisons
protected boolean
assertSameAsFile( string $path , string $result )
Compare the result to the contents of the file
$path
$result
protected string
The base path for output comparisons
Must be initialized before use
''
protected boolean
Update comparisons to match test changes
Initialized with the env variable UPDATE_TEST_COMPARISON_FILES
null
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.TestSuite.StringCompareTrait.html