VerifyStringTrait
Table of Contents
Methods
- endsWith() : mixed
- Verifies that a string ends with a given suffix.
- equalsFile() : mixed
- Verifies that the contents of a string is equal to the contents of a file.
- equalsJsonString() : mixed
- Verifies that two given JSON encoded objects or arrays are equal.
- hasStaticAttribute() : mixed
- Verifies that a class has a specified static attribute.
- json() : mixed
- Verifies that a string is a valid JSON string.
- jsonStringNotEqualsJsonString() : mixed
- Verifies that two given JSON encoded objects or arrays are not equal.
- matchesFormat() : mixed
- Verifies that a string matches a given format string.
- matchesFormatFile() : mixed
- Verifies that a string matches a given format file.
- notEndsWith() : mixed
- Verifies that a string ends not with a given suffix.
- notEqualsFile() : mixed
- Verifies that the contents of a string is not equal to the contents of a file.
- notHasStaticAttribute() : mixed
- Verifies that a class does not have a specified static attribute.
- notMatchesFormat() : mixed
- notMatchesFormatFile() : mixed
- Verifies that a string does not match a given format string.
- notRegExp() : mixed
- Verifies that a string does not match a given regular expression.
- notStartsWith() : mixed
- Verifies that a string starts not with a given prefix.
- regExp() : mixed
- Verifies that a string matches a given regular expression.
- startsWith() : mixed
- Verifies that a string starts with a given prefix.
- stringContainsString() : mixed
- stringContainsStringIgnoringCase() : mixed
- stringEqualsFileCanonicalizing() : mixed
- Verifies that the contents of a string is equal to the contents of a file (canonicalizing).
- stringEqualsFileIgnoringCase() : mixed
- Verifies that the contents of a string is equal to the contents of a file (ignoring case).
- stringNotContainsString() : mixed
- stringNotContainsStringIgnoringCase() : mixed
- stringNotEqualsFileCanonicalizing() : mixed
- Verifies that the contents of a string is not equal to the contents of a file (canonicalizing).
- stringNotEqualsFileIgnoringCase() : mixed
- Verifies that the contents of a string is not equal to the contents of a file (ignoring case).
Methods
endsWith()
Verifies that a string ends with a given suffix.
public
endsWith(string $suffix) : mixed
Parameters
- $suffix : string
equalsFile()
Verifies that the contents of a string is equal to the contents of a file.
public
equalsFile(string $expectedFile) : mixed
Parameters
- $expectedFile : string
equalsJsonString()
Verifies that two given JSON encoded objects or arrays are equal.
public
equalsJsonString(mixed $string) : mixed
Parameters
- $string : mixed
hasStaticAttribute()
Verifies that a class has a specified static attribute.
public
hasStaticAttribute(string $attributeName) : mixed
Parameters
- $attributeName : string
json()
Verifies that a string is a valid JSON string.
public
json() : mixed
jsonStringNotEqualsJsonString()
Verifies that two given JSON encoded objects or arrays are not equal.
public
jsonStringNotEqualsJsonString(string $expectedJson) : mixed
Parameters
- $expectedJson : string
matchesFormat()
Verifies that a string matches a given format string.
public
matchesFormat(string $format) : mixed
Parameters
- $format : string
matchesFormatFile()
Verifies that a string matches a given format file.
public
matchesFormatFile(string $formatFile) : mixed
Parameters
- $formatFile : string
notEndsWith()
Verifies that a string ends not with a given suffix.
public
notEndsWith(string $suffix) : mixed
Parameters
- $suffix : string
notEqualsFile()
Verifies that the contents of a string is not equal to the contents of a file.
public
notEqualsFile(string $expectedFile) : mixed
Parameters
- $expectedFile : string
notHasStaticAttribute()
Verifies that a class does not have a specified static attribute.
public
notHasStaticAttribute(string $attributeName) : mixed
Parameters
- $attributeName : string
notMatchesFormat()
public
notMatchesFormat(mixed $format) : mixed
Parameters
- $format : mixed
notMatchesFormatFile()
Verifies that a string does not match a given format string.
public
notMatchesFormatFile(string $formatFile) : mixed
Parameters
- $formatFile : string
notRegExp()
Verifies that a string does not match a given regular expression.
public
notRegExp(string $pattern) : mixed
Parameters
- $pattern : string
notStartsWith()
Verifies that a string starts not with a given prefix.
public
notStartsWith(string $prefix) : mixed
Parameters
- $prefix : string
regExp()
Verifies that a string matches a given regular expression.
public
regExp(string $pattern) : mixed
Parameters
- $pattern : string
startsWith()
Verifies that a string starts with a given prefix.
public
startsWith(string $prefix) : mixed
Parameters
- $prefix : string
stringContainsString()
public
stringContainsString(string $needle) : mixed
Parameters
- $needle : string
stringContainsStringIgnoringCase()
public
stringContainsStringIgnoringCase(mixed $needle) : mixed
Parameters
- $needle : mixed
stringEqualsFileCanonicalizing()
Verifies that the contents of a string is equal to the contents of a file (canonicalizing).
public
stringEqualsFileCanonicalizing(string $expectedFile) : mixed
Parameters
- $expectedFile : string
stringEqualsFileIgnoringCase()
Verifies that the contents of a string is equal to the contents of a file (ignoring case).
public
stringEqualsFileIgnoringCase(string $expectedFile) : mixed
Parameters
- $expectedFile : string
stringNotContainsString()
public
stringNotContainsString(string $needle) : mixed
Parameters
- $needle : string
stringNotContainsStringIgnoringCase()
public
stringNotContainsStringIgnoringCase(string $needle) : mixed
Parameters
- $needle : string
stringNotEqualsFileCanonicalizing()
Verifies that the contents of a string is not equal to the contents of a file (canonicalizing).
public
stringNotEqualsFileCanonicalizing(string $expectedFile) : mixed
Parameters
- $expectedFile : string
stringNotEqualsFileIgnoringCase()
Verifies that the contents of a string is not equal to the contents of a file (ignoring case).
public
stringNotEqualsFileIgnoringCase(string $expectedFile) : mixed
Parameters
- $expectedFile : string