Trait StringCompareTrait

Compare a string to the contents of a file

Implementing objects are expected to modify the $_compareBasePath property before use.

Method Detail

assertSameAsFilesource public

assertSameAsFile( string $path , string $result )

Compare the result to the contents of the file

Parameters

string $path
partial path to test comparison file
string $result
test result as a string

Properties summary

$_compareBasePathsource

protected string

The base path for output comparisons

Must be initialized before use

''

© 2005–2016 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.
http://api.cakephp.org/3.1/class-Cake.TestSuite.StringCompareTrait.html