# StrAssertInterface

Chevere\Interfaces\Str\StrAssertInterface

view source

# Description

Describes the component in charge of string asserting.

# Methods

# __construct()

# Parameters

  1. 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

  1. string $needle

RETURN

self


# notStartsWith()

Asserts that the string not starts with $needle.

# Parameters

  1. string $needle

RETURN

self


# endsWith()

Asserts that the string ends with $needle.

# Parameters

  1. string $needle

RETURN

self


# notEndsWith()

Asserts that the string not ends with $needle.

# Parameters

  1. string $needle

RETURN

self


# same()

Asserts that the string is same as $string.

# Parameters

  1. string $string

RETURN

self


# notSame()

Asserts that the string is not same as $string.

# Parameters

  1. string $string

RETURN

self


# contains()

Asserts that the string contains $string.

# Parameters

  1. string $string

RETURN

self


# notContains()

Asserts that the string not contains $string.

# Parameters

  1. string $string

RETURN

self


Last Updated: 1/16/2021, 9:23:54 PM