public function testProtectedMethodAccessAttempt()
{
$postsController = new MockPostsController();
$this->assertException('/^Attempted to invoke a private method/', function () use($postsController) {
$postsController->__invoke(null, array('action' => 'redirect'));
});
$postsController = new MockPostsController();
$this->assertException('/^Attempted to invoke a private method/', function () use($postsController) {
$postsController->__invoke(null, array('action' => '_safe'));
});
}