PHP Classes

File: tests/TestCase.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Polr Restful API   tests/TestCase.php   Download  
File: tests/TestCase.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Polr Restful API
Provide an API for the Polr URL shortener service
Author: By
Last change:
Date: 6 years ago
Size: 532 bytes
 

Contents

Class file image Download
<?php

class TestCase extends Illuminate\Foundation\Testing\TestCase
{
   
/**
     * The base URL to use while testing the application.
     *
     * @var string
     */
   
protected $baseUrl = 'http://localhost';

   
/**
     * Creates the application.
     *
     * @return \Illuminate\Foundation\Application
     */
   
public function createApplication()
    {
       
$app = require __DIR__.'/../bootstrap/app.php';

       
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();

        return
$app;
    }
}