\PHPMailer\Test\PHPMailerIsPermittedPathTest

Test path validation functionality.

Summary

Methods
Properties
Constants
testIsPermittedPath()
dataIsPermittedPath()
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

testIsPermittedPath()

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

Test whether the validation of whether a path is of a permitted type works correctly.

Parameters

string $input

A relative or absolute path to a file.

bool $expected

The expected function return value.

Returns

mixed —

dataIsPermittedPath()

dataIsPermittedPath() : array

Data provider.

Returns

array —