Documentation

HtaccessUnitTest extends CreateBase
in package

Tags
psalm-suppress

PropertyNotSetInConstructor

Table of Contents

testCreateHtaccessForExisting()  : void
Testing htaccess creation
testCreateHtaccessForExistingNotRewtire()  : void
Testing htaccess creation
testCreateHtaccessForUnexisting()  : void
Testing htaccess creation
createForExisting()  : void
Test for existing creating file
createForExistingNotRewrite()  : void
Test for existing creating file
createForUnexisting()  : void
Test for unexisting creating file
setUp()  : void
{@inheritdoc}
createForExistingBase()  : void
Test for 'create' verb

Methods

testCreateHtaccessForExisting()

Testing htaccess creation

public testCreateHtaccessForExisting() : void
Return values
void

testCreateHtaccessForExistingNotRewtire()

Testing htaccess creation

public testCreateHtaccessForExistingNotRewtire() : void
Return values
void

testCreateHtaccessForUnexisting()

Testing htaccess creation

public testCreateHtaccessForUnexisting() : void
Return values
void

createForExisting()

Test for existing creating file

protected createForExisting(string $fileName, array<string|int, string> $contentValidators, array<string|int, string> $outputValidators) : void
Parameters
$fileName : string

file name to be asserted

$contentValidators : array<string|int, string>

content validators

$outputValidators : array<string|int, string>

console output validators

Return values
void

createForExistingNotRewrite()

Test for existing creating file

protected createForExistingNotRewrite(string $fileName, array<string|int, string> $contentValidators, array<string|int, string> $outputValidators) : void
Parameters
$fileName : string

file name to be asserted

$contentValidators : array<string|int, string>

content validators

$outputValidators : array<string|int, string>

console output validators

Return values
void

createForUnexisting()

Test for unexisting creating file

protected createForUnexisting(string $fileName, array<string|int, string> $contentValidators, array<string|int, string> $outputValidators) : void
Parameters
$fileName : string

file name to be asserted

$contentValidators : array<string|int, string>

content validators

$outputValidators : array<string|int, string>

console output validators

Return values
void

setUp()

{@inheritdoc}

protected setUp() : void
Tags
see
TestCase::setUp()
Return values
void

createForExistingBase()

Test for 'create' verb

private createForExistingBase(string $fileName, string $answer, array<string|int, string> $contentValidators, array<string|int, string> $outputValidators) : void
Parameters
$fileName : string

file name

$answer : string

answer for prompting

$contentValidators : array<string|int, string>

file content validators

$outputValidators : array<string|int, string>

console output validators

Return values
void

Search results

    Яндекс.Метрика