Fixed a bug when running PHPUnit with views being loaded multiple times.

When running phpunit tests and creating a controller, if I use a dataProvider and call the same controller again and again with different data, I get errors ("Cannot redeclare my_function_name()") with functions defined in the global scale.