# StrAssertInterface

Chevere\Interfaces\Str\StrAssertInterface

view source (opens new window)

# Description

Describes the component in charge of string asserting.

# Methods

# __construct

Parameters

  • string: string

# empty

Asserts that the string is empty.

Return

self


# notEmpty

Asserts that the string is not empty.

Return

self


# ctypeSpace

Asserts that the string is ctype space.

Return

self


# notCtypeSpace

Asserts that the string is not ctype space.

Return

self


# ctypeDigit

Asserts that the string is ctype digit.

Return

self


# notCtypeDigit

Asserts that the string is not ctype digit.

Return

self


# startsWithCtypeDigit

Asserts that the string is starts with ctype digit.

Return

self


# notStartsWithCtypeDigit

Asserts that the string not starts with ctype digit.

Return

self


# startsWith

Asserts that the string is starts with $needle.

Parameters

  • needle: string

Return

self


# notStartsWith

Asserts that the string not starts with $needle.

Parameters

  • needle: string

Return

self


# endsWith

Asserts that the string ends with $needle.

Parameters

  • needle: string

Return

self


# notEndsWith

Asserts that the string not ends with $needle.

Parameters

  • needle: string

Return

self


# same

Asserts that the string is same as $string.

Parameters

  • string: string

Return

self


# notSame

Asserts that the string is not same as $string.

Parameters

  • string: string

Return

self


# contains

Asserts that the string contains $string.

Parameters

  • string: string

Return

self


# notContains

Asserts that the string not contains $string.

Parameters

  • string: string

Return

self


Last Updated: 5/1/2021, 2:31:10 PM