\PHPMailer\Test\PHPMailerFileIsAccessibleTest

Test file accessibility verification functionality.

Summary

Methods
Properties
Constants
testFileIsAccessible()
dataFileIsAccessible()
testFileIsAccessibleFailsOnUnreadableFile()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

testFileIsAccessible()

testFileIsAccessible(string  $input, bool  $expected) : mixed

Verify whether the "is a file accessible" check works correctly.

Parameters

string $input

A relative or absolute path to a file.

bool $expected

The expected function return value.

Returns

mixed —

dataFileIsAccessible()

dataFileIsAccessible() : array

Data provider.

Returns

array —

testFileIsAccessibleFailsOnUnreadableFile()

testFileIsAccessibleFailsOnUnreadableFile() : mixed

Test that the "is a file accessible" check correctly fails when the file permissions make the file unreadable.

Returns

mixed —