Documentation

UrlTest extends PHPUnit_Framework_TestCase
in package

Tags
since
2.3
author

Bernhard Schussek bschussek@gmail.com

author

Claudio Zizza claudio@budgegeria.de

Table of Contents

provideMakeRelativeIsAlreadyRelativeTests()  : mixed
provideMakeRelativeTests()  : mixed
testMakeRelative()  : mixed
testMakeRelativeFailsIfBaseUrlEmpty()  : mixed
testMakeRelativeFailsIfBaseUrlNoUrl()  : mixed
testMakeRelativeFailsIfBaseUrlNull()  : mixed
testMakeRelativeFailsIfDifferentDomains()  : mixed
testMakeRelativeFailsIfInvalidBaseUrl()  : mixed
testMakeRelativeFailsIfInvalidUrl()  : mixed
testMakeRelativeIsAlreadyRelative()  : mixed
testMakeRelativeWithFullUrl()  : mixed

Methods

provideMakeRelativeIsAlreadyRelativeTests()

public provideMakeRelativeIsAlreadyRelativeTests() : mixed
Return values
mixed

provideMakeRelativeTests()

public provideMakeRelativeTests() : mixed
Return values
mixed

testMakeRelative()

public testMakeRelative(mixed $absolutePath, mixed $basePath, mixed $relativePath) : mixed
Parameters
$absolutePath : mixed
$basePath : mixed
$relativePath : mixed
Tags
dataProvider

provideMakeRelativeTests

covers
Return values
mixed

testMakeRelativeFailsIfBaseUrlEmpty()

public testMakeRelativeFailsIfBaseUrlEmpty() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

"" is not an absolute Url.

covers
Return values
mixed

testMakeRelativeFailsIfBaseUrlNoUrl()

public testMakeRelativeFailsIfBaseUrlNoUrl() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

"webmozart/puli" is not an absolute Url.

covers
Return values
mixed

testMakeRelativeFailsIfBaseUrlNull()

public testMakeRelativeFailsIfBaseUrlNull() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The base URL must be a string. Got: NULL

covers
Return values
mixed

testMakeRelativeFailsIfDifferentDomains()

public testMakeRelativeFailsIfDifferentDomains() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The URL "http://example.com" cannot be made relative to "http://example2.com" since their host names are different.

covers
Return values
mixed

testMakeRelativeFailsIfInvalidBaseUrl()

public testMakeRelativeFailsIfInvalidBaseUrl() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The base URL must be a string. Got: array

covers
Return values
mixed

testMakeRelativeFailsIfInvalidUrl()

public testMakeRelativeFailsIfInvalidUrl() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The URL must be a string. Got: array

covers
Return values
mixed

testMakeRelativeIsAlreadyRelative()

public testMakeRelativeIsAlreadyRelative(mixed $absolutePath, mixed $basePath, mixed $relativePath) : mixed
Parameters
$absolutePath : mixed
$basePath : mixed
$relativePath : mixed
Tags
dataProvider

provideMakeRelativeIsAlreadyRelativeTests

covers
Return values
mixed

testMakeRelativeWithFullUrl()

public testMakeRelativeWithFullUrl(mixed $absolutePath, mixed $basePath, mixed $relativePath) : mixed
Parameters
$absolutePath : mixed
$basePath : mixed
$relativePath : mixed
Tags
dataProvider

provideMakeRelativeTests

covers
Return values
mixed

Search results