app->instance($class, $mock); return $mock; } }