fmalk / codeigniter-phpunit

Hack to make CodeIgniter work with PHPUnit.
234 stars 61 forks source link

Using read_file with phpunit #38

Closed gegere closed 8 years ago

gegere commented 8 years ago

This has been a great addition to CodeIginiter. I have been trying to use read_file() and can't seem to figure it out. I have moved a sample file to the tests folder as this is the main index executes here.

I have tried various paths but the function always returns false.

Thanks in advance for a little help?

gegere commented 8 years ago

Nailed it.

$output = get_dir_file_info('./public_html/data', $top_level_only = TRUE); print_r($output);