PHP Class TestCase

Inheritance: extends PHPUnit_Framework_TestCase
显示文件 Open project: phanan/koel Class Usage Examples

Protected Properties

Property Type Description
$baseUrl string The base URL to use while testing the application.
$coverPath
$mediaPath

Public Methods

Method Description
__construct ( )
createApplication ( ) : Illuminate\Foundation\Application Creates the application.
setUp ( )

Protected Methods

Method Description
createSampleMediaSet ( ) Create a sample media set, with a complete artist+album+song trio.
deleteAsUser ( $url, $data = [], $user = null )
getAsUser ( $url, $user = null )
postAsUser ( $url, $data, $user = null )
putAsUser ( $url, $data, $user = null )

Private Methods

Method Description
prepareForTests ( )

Method Details

__construct() public method

public __construct ( )

createApplication() public method

Creates the application.
public createApplication ( ) : Illuminate\Foundation\Application
return Illuminate\Foundation\Application

createSampleMediaSet() protected method

Create a sample media set, with a complete artist+album+song trio.
protected createSampleMediaSet ( )

deleteAsUser() protected method

protected deleteAsUser ( $url, $data = [], $user = null )

getAsUser() protected method

protected getAsUser ( $url, $user = null )

postAsUser() protected method

protected postAsUser ( $url, $data, $user = null )

putAsUser() protected method

protected putAsUser ( $url, $data, $user = null )

setUp() public method

public setUp ( )

Property Details

$baseUrl protected_oe property

The base URL to use while testing the application.
protected string $baseUrl
return string

$coverPath protected_oe property

protected $coverPath

$mediaPath protected_oe property

protected $mediaPath