Object: $result ($this)
Expectation: should or shouldNot
Matcher: Be...()
Types of Matchers:
| <?php | |
| $root = $_SERVER['DOCUMENT_ROOT']; | |
| chdir($root); | |
| $path = '/'.ltrim(parse_url($_SERVER['REQUEST_URI'])['path'],'/'); | |
| set_include_path(get_include_path().':'.__DIR__); | |
| if(file_exists($root.$path)) | |
| { | |
| if(is_dir($root.$path) && substr($path,strlen($path) - 1, 1) !== '/') | |
| $path = rtrim($path,'/').'/index.php'; |