Link Search Menu Expand Document

danog\MadelineProto\Test\CallRecorderSegmentsTest

Back to index

Author: Daniil Gentili daniil@daniil.it

The recorder follows the party turning its mic, camera and screen share on and off: every change of

the flowing streams closes the file and continues in <base>.N.mkv with exactly those streams.

Method list:

Methods:

testSegmentsFollowTheStreams(): void

testCodecChangeStartsANewSegment(): void

testDirectoryStemAndNothingRecorded(): void

any(): \PHPUnit\Framework\MockObject\Rule\AnyInvokedCount

Returns a matcher that matches when the method is executed zero or more times.

See also:

  • \PHPUnit\Framework\MockObject\Rule\AnyInvokedCount

never(): \PHPUnit\Framework\MockObject\Rule\InvokedCount

Returns a matcher that matches when the method is never executed.

See also:

  • \PHPUnit\Framework\MockObject\Rule\InvokedCount

atLeast(int $requiredInvocations): \PHPUnit\Framework\MockObject\Rule\InvokedAtLeastCount

Returns a matcher that matches when the method is executed at least N times.

Parameters:

  • $requiredInvocations: int

See also:

  • \PHPUnit\Framework\MockObject\Rule\InvokedAtLeastCount

atLeastOnce(): \PHPUnit\Framework\MockObject\Rule\InvokedAtLeastOnce

Returns a matcher that matches when the method is executed at least once.

See also:

  • \PHPUnit\Framework\MockObject\Rule\InvokedAtLeastOnce

once(): \PHPUnit\Framework\MockObject\Rule\InvokedCount

Returns a matcher that matches when the method is executed exactly once.

See also:

  • \PHPUnit\Framework\MockObject\Rule\InvokedCount

exactly(int $count): \PHPUnit\Framework\MockObject\Rule\InvokedCount

Returns a matcher that matches when the method is executed exactly $count times.

Parameters:

  • $count: int

See also:

  • \PHPUnit\Framework\MockObject\Rule\InvokedCount

atMost(int $allowedInvocations): \PHPUnit\Framework\MockObject\Rule\InvokedAtMostCount

Returns a matcher that matches when the method is executed at most N times.

Parameters:

  • $allowedInvocations: int

See also:

  • \PHPUnit\Framework\MockObject\Rule\InvokedAtMostCount

returnValue(mixed $value): \PHPUnit\Framework\MockObject\Stub\ReturnStub

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\MockObject\Stub\ReturnStub

returnValueMap(array $valueMap): \PHPUnit\Framework\MockObject\Stub\ReturnValueMap

Parameters:

  • $valueMap: array

See also:

  • \PHPUnit\Framework\MockObject\Stub\ReturnValueMap

returnArgument(int $argumentIndex): \PHPUnit\Framework\MockObject\Stub\ReturnArgument

Parameters:

  • $argumentIndex: int

See also:

  • \PHPUnit\Framework\MockObject\Stub\ReturnArgument

returnCallback(mixed $callback): \PHPUnit\Framework\MockObject\Stub\ReturnCallback

Parameters:

  • $callback: mixed

See also:

  • \PHPUnit\Framework\MockObject\Stub\ReturnCallback

returnSelf(): \PHPUnit\Framework\MockObject\Stub\ReturnSelf

Returns the current object.

This method is useful when mocking a fluent interface.

See also:

  • \PHPUnit\Framework\MockObject\Stub\ReturnSelf

throwException(Throwable $exception): \PHPUnit\Framework\MockObject\Stub\Exception

Parameters:

  • $exception: Throwable

See also:

  • Throwable
  • \PHPUnit\Framework\MockObject\Stub\Exception

onConsecutiveCalls(mixed ...$args): \PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls

Parameters:

  • ...$args: mixed

See also:

  • \PHPUnit\Framework\MockObject\Stub\ConsecutiveCalls

setUpBeforeClass(): void

This method is called before the first test of this test class is run.

tearDownAfterClass(): void

This method is called after the last test of this test class is run.

toString(): string

Returns a string representation of the test case.

count(): int

getActualOutputForAssertion(): string

expectOutputRegex(string $expectedRegex): void

Parameters:

  • $expectedRegex: string

expectOutputString(string $expectedString): void

Parameters:

  • $expectedString: string

expectException(class-string<Throwable> $exception): void

Parameters:

  • $exception: class-string<Throwable>

See also:

  • Throwable

expectExceptionCode((int|string) $code): void

Parameters:

  • $code: (int|string)

expectExceptionMessage(string $message): void

Parameters:

  • $message: string

expectExceptionMessageMatches(string $regularExpression): void

Parameters:

  • $regularExpression: string

expectExceptionObject(Exception $exception): void

Sets up an expectation for an exception to be raised by the code under test. Information for expected exception class, expected exception message, and
expected exception code are retrieved from a given Exception object.

Parameters:

  • $exception: Exception

See also:

  • Exception

expectNotToPerformAssertions(): void

getStatus(): int

markAsRisky(): void

getStatusMessage(): string

hasFailed(): bool

run(?\PHPUnit\Framework\TestResult $result = NULL): \PHPUnit\Framework\TestResult

Runs the test case and collects the results in a TestResult object. If no TestResult object is passed a new one will be created.

Parameters:

  • $result: ?\PHPUnit\Framework\TestResult

See also:

  • \PHPUnit\Framework\TestResult

getMockBuilder(class-string<RealInstanceType> $className): MockBuilder<RealInstanceType>

Returns a builder object to create mock objects using a fluent interface.

Parameters:

  • $className: class-string<RealInstanceType>

See also:

  • RealInstanceType
  • MockBuilder

registerComparator(\SebastianBergmann\Comparator\Comparator $comparator): void

Parameters:

  • $comparator: \SebastianBergmann\Comparator\Comparator

See also:

  • \SebastianBergmann\Comparator\Comparator

sortId(): string

provides(): list<ExecutionOrderDependency>

Returns the normalized test name as class::method.

See also:

  • ExecutionOrderDependency

requires(): list<ExecutionOrderDependency>

Returns a list of normalized dependency names, class::method.

This list can differ from the raw dependencies as the resolver has
no need for the [!][shallow]clone prefix that is filtered out
during normalization.

See also:

  • ExecutionOrderDependency

assertArrayHasKey((int|string) $key, (array|ArrayAccess) $array, string $message = ''): void

Asserts that an array has a specified key.

Parameters:

  • $key: (int|string)
  • $array: (array|ArrayAccess)
  • $message: string

See also:

  • ArrayAccess

assertArrayNotHasKey((int|string) $key, (array|ArrayAccess) $array, string $message = ''): void

Asserts that an array does not have a specified key.

Parameters:

  • $key: (int|string)
  • $array: (array|ArrayAccess)
  • $message: string

See also:

  • ArrayAccess

assertContains(mixed $needle, iterable $haystack, string $message = ''): void

Asserts that a haystack contains a needle.

Parameters:

  • $needle: mixed
  • $haystack: iterable
  • $message: string

assertContainsEquals(mixed $needle, iterable $haystack, string $message = ''): void

Parameters:

  • $needle: mixed
  • $haystack: iterable
  • $message: string

assertNotContains(mixed $needle, iterable $haystack, string $message = ''): void

Asserts that a haystack does not contain a needle.

Parameters:

  • $needle: mixed
  • $haystack: iterable
  • $message: string

assertNotContainsEquals(mixed $needle, iterable $haystack, string $message = ''): void

Parameters:

  • $needle: mixed
  • $haystack: iterable
  • $message: string

assertContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = NULL, string $message = ''): void

Asserts that a haystack contains only values of a given type.

Parameters:

  • $type: string
  • $haystack: iterable
  • $isNativeType: ?bool
  • $message: string

assertContainsOnlyInstancesOf(string $className, iterable $haystack, string $message = ''): void

Asserts that a haystack contains only instances of a given class name.

Parameters:

  • $className: string
  • $haystack: iterable
  • $message: string

assertNotContainsOnly(string $type, iterable $haystack, ?bool $isNativeType = NULL, string $message = ''): void

Asserts that a haystack does not contain only values of a given type.

Parameters:

  • $type: string
  • $haystack: iterable
  • $isNativeType: ?bool
  • $message: string

assertCount(int $expectedCount, (Countable|iterable) $haystack, string $message = ''): void

Asserts the number of elements of an array, Countable or Traversable.

Parameters:

  • $expectedCount: int
  • $haystack: (Countable|iterable)
  • $message: string

See also:

  • Countable

assertNotCount(int $expectedCount, (Countable|iterable) $haystack, string $message = ''): void

Asserts the number of elements of an array, Countable or Traversable.

Parameters:

  • $expectedCount: int
  • $haystack: (Countable|iterable)
  • $message: string

See also:

  • Countable

assertEquals(mixed $expected, mixed $actual, string $message = ''): void

Asserts that two variables are equal.

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertEqualsCanonicalizing(mixed $expected, mixed $actual, string $message = ''): void

Asserts that two variables are equal (canonicalizing).

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertEqualsIgnoringCase(mixed $expected, mixed $actual, string $message = ''): void

Asserts that two variables are equal (ignoring case).

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertEqualsWithDelta(mixed $expected, mixed $actual, float $delta, string $message = ''): void

Asserts that two variables are equal (with delta).

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $delta: float
  • $message: string

assertNotEquals(mixed $expected, mixed $actual, string $message = ''): void

Asserts that two variables are not equal.

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertNotEqualsCanonicalizing(mixed $expected, mixed $actual, string $message = ''): void

Asserts that two variables are not equal (canonicalizing).

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertNotEqualsIgnoringCase(mixed $expected, mixed $actual, string $message = ''): void

Asserts that two variables are not equal (ignoring case).

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertNotEqualsWithDelta(mixed $expected, mixed $actual, float $delta, string $message = ''): void

Asserts that two variables are not equal (with delta).

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $delta: float
  • $message: string

assertObjectEquals(object $expected, object $actual, string $method = 'equals', string $message = ''): void

Parameters:

  • $expected: object
  • $actual: object
  • $method: string
  • $message: string

assertEmpty(mixed $actual, string $message = ''): void

Asserts that a variable is empty.

Parameters:

  • $actual: mixed
  • $message: string

assertNotEmpty(mixed $actual, string $message = ''): void

Asserts that a variable is not empty.

Parameters:

  • $actual: mixed
  • $message: string

assertGreaterThan(mixed $expected, mixed $actual, string $message = ''): void

Asserts that a value is greater than another value.

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertGreaterThanOrEqual(mixed $expected, mixed $actual, string $message = ''): void

Asserts that a value is greater than or equal to another value.

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertLessThan(mixed $expected, mixed $actual, string $message = ''): void

Asserts that a value is smaller than another value.

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertLessThanOrEqual(mixed $expected, mixed $actual, string $message = ''): void

Asserts that a value is smaller than or equal to another value.

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertFileEquals(string $expected, string $actual, string $message = ''): void

Asserts that the contents of one file is equal to the contents of another file.

Parameters:

  • $expected: string
  • $actual: string
  • $message: string

assertFileEqualsCanonicalizing(string $expected, string $actual, string $message = ''): void

Asserts that the contents of one file is equal to the contents of another file (canonicalizing).

Parameters:

  • $expected: string
  • $actual: string
  • $message: string

assertFileEqualsIgnoringCase(string $expected, string $actual, string $message = ''): void

Asserts that the contents of one file is equal to the contents of another file (ignoring case).

Parameters:

  • $expected: string
  • $actual: string
  • $message: string

assertFileNotEquals(string $expected, string $actual, string $message = ''): void

Asserts that the contents of one file is not equal to the contents of another file.

Parameters:

  • $expected: string
  • $actual: string
  • $message: string

assertFileNotEqualsCanonicalizing(string $expected, string $actual, string $message = ''): void

Asserts that the contents of one file is not equal to the contents of another file (canonicalizing).

Parameters:

  • $expected: string
  • $actual: string
  • $message: string

assertFileNotEqualsIgnoringCase(string $expected, string $actual, string $message = ''): void

Asserts that the contents of one file is not equal to the contents of another file (ignoring case).

Parameters:

  • $expected: string
  • $actual: string
  • $message: string

assertStringEqualsFile(string $expectedFile, string $actualString, string $message = ''): void

Asserts that the contents of a string is equal to the contents of a file.

Parameters:

  • $expectedFile: string
  • $actualString: string
  • $message: string

assertStringEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = ''): void

Asserts that the contents of a string is equal to the contents of a file (canonicalizing).

Parameters:

  • $expectedFile: string
  • $actualString: string
  • $message: string

assertStringEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = ''): void

Asserts that the contents of a string is equal to the contents of a file (ignoring case).

Parameters:

  • $expectedFile: string
  • $actualString: string
  • $message: string

assertStringNotEqualsFile(string $expectedFile, string $actualString, string $message = ''): void

Asserts that the contents of a string is not equal to the contents of a file.

Parameters:

  • $expectedFile: string
  • $actualString: string
  • $message: string

assertStringNotEqualsFileCanonicalizing(string $expectedFile, string $actualString, string $message = ''): void

Asserts that the contents of a string is not equal to the contents of a file (canonicalizing).

Parameters:

  • $expectedFile: string
  • $actualString: string
  • $message: string

assertStringNotEqualsFileIgnoringCase(string $expectedFile, string $actualString, string $message = ''): void

Asserts that the contents of a string is not equal to the contents of a file (ignoring case).

Parameters:

  • $expectedFile: string
  • $actualString: string
  • $message: string

assertIsReadable(string $filename, string $message = ''): void

Asserts that a file/dir is readable.

Parameters:

  • $filename: string
  • $message: string

assertIsNotReadable(string $filename, string $message = ''): void

Asserts that a file/dir exists and is not readable.

Parameters:

  • $filename: string
  • $message: string

assertIsWritable(string $filename, string $message = ''): void

Asserts that a file/dir exists and is writable.

Parameters:

  • $filename: string
  • $message: string

assertIsNotWritable(string $filename, string $message = ''): void

Asserts that a file/dir exists and is not writable.

Parameters:

  • $filename: string
  • $message: string

assertDirectoryExists(string $directory, string $message = ''): void

Asserts that a directory exists.

Parameters:

  • $directory: string
  • $message: string

assertDirectoryDoesNotExist(string $directory, string $message = ''): void

Asserts that a directory does not exist.

Parameters:

  • $directory: string
  • $message: string

assertDirectoryIsReadable(string $directory, string $message = ''): void

Asserts that a directory exists and is readable.

Parameters:

  • $directory: string
  • $message: string

assertDirectoryIsNotReadable(string $directory, string $message = ''): void

Asserts that a directory exists and is not readable.

Parameters:

  • $directory: string
  • $message: string

assertDirectoryIsWritable(string $directory, string $message = ''): void

Asserts that a directory exists and is writable.

Parameters:

  • $directory: string
  • $message: string

assertDirectoryIsNotWritable(string $directory, string $message = ''): void

Asserts that a directory exists and is not writable.

Parameters:

  • $directory: string
  • $message: string

assertFileExists(string $filename, string $message = ''): void

Asserts that a file exists.

Parameters:

  • $filename: string
  • $message: string

assertFileDoesNotExist(string $filename, string $message = ''): void

Asserts that a file does not exist.

Parameters:

  • $filename: string
  • $message: string

assertFileIsReadable(string $file, string $message = ''): void

Asserts that a file exists and is readable.

Parameters:

  • $file: string
  • $message: string

assertFileIsNotReadable(string $file, string $message = ''): void

Asserts that a file exists and is not readable.

Parameters:

  • $file: string
  • $message: string

assertFileIsWritable(string $file, string $message = ''): void

Asserts that a file exists and is writable.

Parameters:

  • $file: string
  • $message: string

assertFileIsNotWritable(string $file, string $message = ''): void

Asserts that a file exists and is not writable.

Parameters:

  • $file: string
  • $message: string

assertTrue(mixed $condition, string $message = ''): void

Asserts that a condition is true.

Parameters:

  • $condition: mixed
  • $message: string

assertNotTrue(mixed $condition, string $message = ''): void

Asserts that a condition is not true.

Parameters:

  • $condition: mixed
  • $message: string

assertFalse(mixed $condition, string $message = ''): void

Asserts that a condition is false.

Parameters:

  • $condition: mixed
  • $message: string

assertNotFalse(mixed $condition, string $message = ''): void

Asserts that a condition is not false.

Parameters:

  • $condition: mixed
  • $message: string

assertNull(mixed $actual, string $message = ''): void

Asserts that a variable is null.

Parameters:

  • $actual: mixed
  • $message: string

assertNotNull(mixed $actual, string $message = ''): void

Asserts that a variable is not null.

Parameters:

  • $actual: mixed
  • $message: string

assertFinite(mixed $actual, string $message = ''): void

Asserts that a variable is finite.

Parameters:

  • $actual: mixed
  • $message: string

assertInfinite(mixed $actual, string $message = ''): void

Asserts that a variable is infinite.

Parameters:

  • $actual: mixed
  • $message: string

assertNan(mixed $actual, string $message = ''): void

Asserts that a variable is nan.

Parameters:

  • $actual: mixed
  • $message: string

assertObjectHasProperty(string $propertyName, object $object, string $message = ''): void

Asserts that an object has a specified property.

Parameters:

  • $propertyName: string
  • $object: object
  • $message: string

assertObjectNotHasProperty(string $propertyName, object $object, string $message = ''): void

Asserts that an object does not have a specified property.

Parameters:

  • $propertyName: string
  • $object: object
  • $message: string

assertSame(ExpectedType $expected, mixed $actual, string $message = ''): void

Asserts that two variables have the same type and value. Used on objects, it asserts that two variables reference
the same object.

Parameters:

  • $expected: ExpectedType
  • $actual: mixed
  • $message: string

See also:

  • ExpectedType

assertNotSame(mixed $expected, mixed $actual, string $message = ''): void

Asserts that two variables do not have the same type and value. Used on objects, it asserts that two variables do not reference
the same object.

Parameters:

  • $expected: mixed
  • $actual: mixed
  • $message: string

assertInstanceOf(class-string<ExpectedType> $expected, mixed $actual, string $message = ''): void

Asserts that a variable is of a given type.

Parameters:

  • $expected: class-string<ExpectedType>
  • $actual: mixed
  • $message: string

See also:

  • ExpectedType

assertNotInstanceOf(class-string<ExpectedType> $expected, mixed $actual, string $message = ''): void

Asserts that a variable is not of a given type.

Parameters:

  • $expected: class-string<ExpectedType>
  • $actual: mixed
  • $message: string

See also:

  • ExpectedType

assertIsArray(mixed $actual, string $message = ''): void

Asserts that a variable is of type array.

Parameters:

  • $actual: mixed
  • $message: string

assertIsBool(mixed $actual, string $message = ''): void

Asserts that a variable is of type bool.

Parameters:

  • $actual: mixed
  • $message: string

assertIsFloat(mixed $actual, string $message = ''): void

Asserts that a variable is of type float.

Parameters:

  • $actual: mixed
  • $message: string

assertIsInt(mixed $actual, string $message = ''): void

Asserts that a variable is of type int.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNumeric(mixed $actual, string $message = ''): void

Asserts that a variable is of type numeric.

Parameters:

  • $actual: mixed
  • $message: string

assertIsObject(mixed $actual, string $message = ''): void

Asserts that a variable is of type object.

Parameters:

  • $actual: mixed
  • $message: string

assertIsResource(mixed $actual, string $message = ''): void

Asserts that a variable is of type resource.

Parameters:

  • $actual: mixed
  • $message: string

assertIsClosedResource(mixed $actual, string $message = ''): void

Asserts that a variable is of type resource and is closed.

Parameters:

  • $actual: mixed
  • $message: string

assertIsString(mixed $actual, string $message = ''): void

Asserts that a variable is of type string.

Parameters:

  • $actual: mixed
  • $message: string

assertIsScalar(mixed $actual, string $message = ''): void

Asserts that a variable is of type scalar.

Parameters:

  • $actual: mixed
  • $message: string

assertIsCallable(mixed $actual, string $message = ''): void

Asserts that a variable is of type callable.

Parameters:

  • $actual: mixed
  • $message: string

assertIsIterable(mixed $actual, string $message = ''): void

Asserts that a variable is of type iterable.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotArray(mixed $actual, string $message = ''): void

Asserts that a variable is not of type array.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotBool(mixed $actual, string $message = ''): void

Asserts that a variable is not of type bool.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotFloat(mixed $actual, string $message = ''): void

Asserts that a variable is not of type float.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotInt(mixed $actual, string $message = ''): void

Asserts that a variable is not of type int.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotNumeric(mixed $actual, string $message = ''): void

Asserts that a variable is not of type numeric.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotObject(mixed $actual, string $message = ''): void

Asserts that a variable is not of type object.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotResource(mixed $actual, string $message = ''): void

Asserts that a variable is not of type resource.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotClosedResource(mixed $actual, string $message = ''): void

Asserts that a variable is not of type resource.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotString(mixed $actual, string $message = ''): void

Asserts that a variable is not of type string.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotScalar(mixed $actual, string $message = ''): void

Asserts that a variable is not of type scalar.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotCallable(mixed $actual, string $message = ''): void

Asserts that a variable is not of type callable.

Parameters:

  • $actual: mixed
  • $message: string

assertIsNotIterable(mixed $actual, string $message = ''): void

Asserts that a variable is not of type iterable.

Parameters:

  • $actual: mixed
  • $message: string

assertMatchesRegularExpression(string $pattern, string $string, string $message = ''): void

Asserts that a string matches a given regular expression.

Parameters:

  • $pattern: string
  • $string: string
  • $message: string

assertDoesNotMatchRegularExpression(string $pattern, string $string, string $message = ''): void

Asserts that a string does not match a given regular expression.

Parameters:

  • $pattern: string
  • $string: string
  • $message: string

assertSameSize((Countable|iterable) $expected, (Countable|iterable) $actual, string $message = ''): void

Assert that the size of two arrays (or Countable or Traversable objects) is the same.

Parameters:

  • $expected: (Countable|iterable)
  • $actual: (Countable|iterable)
  • $message: string

See also:

  • Countable

assertNotSameSize((Countable|iterable) $expected, (Countable|iterable) $actual, string $message = ''): void

Assert that the size of two arrays (or Countable or Traversable objects) is not the same.

Parameters:

  • $expected: (Countable|iterable)
  • $actual: (Countable|iterable)
  • $message: string

See also:

  • Countable

assertStringMatchesFormat(string $format, string $string, string $message = ''): void

Asserts that a string matches a given format string.

Parameters:

  • $format: string
  • $string: string
  • $message: string

assertStringNotMatchesFormat(string $format, string $string, string $message = ''): void

Asserts that a string does not match a given format string.

Parameters:

  • $format: string
  • $string: string
  • $message: string

assertStringMatchesFormatFile(string $formatFile, string $string, string $message = ''): void

Asserts that a string matches a given format file.

Parameters:

  • $formatFile: string
  • $string: string
  • $message: string

assertStringNotMatchesFormatFile(string $formatFile, string $string, string $message = ''): void

Asserts that a string does not match a given format string.

Parameters:

  • $formatFile: string
  • $string: string
  • $message: string

assertStringStartsWith(string $prefix, string $string, string $message = ''): void

Asserts that a string starts with a given prefix.

Parameters:

  • $prefix: string
  • $string: string
  • $message: string

assertStringStartsNotWith(string $prefix, string $string, string $message = ''): void

Asserts that a string starts not with a given prefix.

Parameters:

  • $prefix: string
  • $string: string
  • $message: string

assertStringContainsString(string $needle, string $haystack, string $message = ''): void

Parameters:

  • $needle: string
  • $haystack: string
  • $message: string

assertStringContainsStringIgnoringCase(string $needle, string $haystack, string $message = ''): void

Parameters:

  • $needle: string
  • $haystack: string
  • $message: string

assertStringNotContainsString(string $needle, string $haystack, string $message = ''): void

Parameters:

  • $needle: string
  • $haystack: string
  • $message: string

assertStringNotContainsStringIgnoringCase(string $needle, string $haystack, string $message = ''): void

Parameters:

  • $needle: string
  • $haystack: string
  • $message: string

assertStringEndsWith(string $suffix, string $string, string $message = ''): void

Asserts that a string ends with a given suffix.

Parameters:

  • $suffix: string
  • $string: string
  • $message: string

assertStringEndsNotWith(string $suffix, string $string, string $message = ''): void

Asserts that a string ends not with a given suffix.

Parameters:

  • $suffix: string
  • $string: string
  • $message: string

assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile, string $message = ''): void

Asserts that two XML files are equal.

Parameters:

  • $expectedFile: string
  • $actualFile: string
  • $message: string

assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile, string $message = ''): void

Asserts that two XML files are not equal.

Parameters:

  • $expectedFile: string
  • $actualFile: string
  • $message: string

assertXmlStringEqualsXmlFile(string $expectedFile, (DOMDocument|string) $actualXml, string $message = ''): void

Asserts that two XML documents are equal.

Parameters:

  • $expectedFile: string
  • $actualXml: (DOMDocument|string)
  • $message: string

See also:

  • DOMDocument

assertXmlStringNotEqualsXmlFile(string $expectedFile, (DOMDocument|string) $actualXml, string $message = ''): void

Asserts that two XML documents are not equal.

Parameters:

  • $expectedFile: string
  • $actualXml: (DOMDocument|string)
  • $message: string

See also:

  • DOMDocument

assertXmlStringEqualsXmlString((DOMDocument|string) $expectedXml, (DOMDocument|string) $actualXml, string $message = ''): void

Asserts that two XML documents are equal.

Parameters:

  • $expectedXml: (DOMDocument|string)
  • $actualXml: (DOMDocument|string)
  • $message: string

See also:

  • DOMDocument

assertXmlStringNotEqualsXmlString((DOMDocument|string) $expectedXml, (DOMDocument|string) $actualXml, string $message = ''): void

Asserts that two XML documents are not equal.

Parameters:

  • $expectedXml: (DOMDocument|string)
  • $actualXml: (DOMDocument|string)
  • $message: string

See also:

  • DOMDocument

assertThat(mixed $value, \PHPUnit\Framework\Constraint\Constraint $constraint, string $message = ''): void

Evaluates a PHPUnit\Framework\Constraint matcher object.

Parameters:

  • $value: mixed
  • $constraint: \PHPUnit\Framework\Constraint\Constraint
  • $message: string

See also:

  • \PHPUnit\Framework\Constraint\Constraint

assertJson(string $actualJson, string $message = ''): void

Asserts that a string is a valid JSON string.

Parameters:

  • $actualJson: string
  • $message: string

assertJsonStringEqualsJsonString(string $expectedJson, string $actualJson, string $message = ''): void

Asserts that two given JSON encoded objects or arrays are equal.

Parameters:

  • $expectedJson: string
  • $actualJson: string
  • $message: string

assertJsonStringNotEqualsJsonString(string $expectedJson, string $actualJson, string $message = ''): void

Asserts that two given JSON encoded objects or arrays are not equal.

Parameters:

  • $expectedJson: string
  • $actualJson: string
  • $message: string

assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson, string $message = ''): void

Asserts that the generated JSON encoded object and the content of the given file are equal.

Parameters:

  • $expectedFile: string
  • $actualJson: string
  • $message: string

assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJson, string $message = ''): void

Asserts that the generated JSON encoded object and the content of the given file are not equal.

Parameters:

  • $expectedFile: string
  • $actualJson: string
  • $message: string

assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile, string $message = ''): void

Asserts that two JSON files are equal.

Parameters:

  • $expectedFile: string
  • $actualFile: string
  • $message: string

assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile, string $message = ''): void

Asserts that two JSON files are not equal.

Parameters:

  • $expectedFile: string
  • $actualFile: string
  • $message: string

logicalAnd(): \PHPUnit\Framework\Constraint\LogicalAnd

See also:

  • \PHPUnit\Framework\Constraint\LogicalAnd

logicalOr(): \PHPUnit\Framework\Constraint\LogicalOr

See also:

  • \PHPUnit\Framework\Constraint\LogicalOr

logicalNot(\PHPUnit\Framework\Constraint\Constraint $constraint): \PHPUnit\Framework\Constraint\LogicalNot

Parameters:

  • $constraint: \PHPUnit\Framework\Constraint\Constraint

See also:

  • \PHPUnit\Framework\Constraint\Constraint
  • \PHPUnit\Framework\Constraint\LogicalNot

logicalXor(): \PHPUnit\Framework\Constraint\LogicalXor

See also:

  • \PHPUnit\Framework\Constraint\LogicalXor

anything(): \PHPUnit\Framework\Constraint\IsAnything

See also:

  • \PHPUnit\Framework\Constraint\IsAnything

isTrue(): \PHPUnit\Framework\Constraint\IsTrue

See also:

  • \PHPUnit\Framework\Constraint\IsTrue

callback(callable(CallbackInput $callback): boo) $callback): Callback<CallbackInput>

Parameters:

  • $callback: callable(CallbackInput $callback): boo)

See also:

  • CallbackInput
  • Callback

isFalse(): \PHPUnit\Framework\Constraint\IsFalse

See also:

  • \PHPUnit\Framework\Constraint\IsFalse

isJson(): \PHPUnit\Framework\Constraint\IsJson

See also:

  • \PHPUnit\Framework\Constraint\IsJson

isNull(): \PHPUnit\Framework\Constraint\IsNull

See also:

  • \PHPUnit\Framework\Constraint\IsNull

isFinite(): \PHPUnit\Framework\Constraint\IsFinite

See also:

  • \PHPUnit\Framework\Constraint\IsFinite

isInfinite(): \PHPUnit\Framework\Constraint\IsInfinite

See also:

  • \PHPUnit\Framework\Constraint\IsInfinite

isNan(): \PHPUnit\Framework\Constraint\IsNan

See also:

  • \PHPUnit\Framework\Constraint\IsNan

containsEqual(mixed $value): \PHPUnit\Framework\Constraint\TraversableContainsEqual

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\TraversableContainsEqual

containsIdentical(mixed $value): \PHPUnit\Framework\Constraint\TraversableContainsIdentical

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\TraversableContainsIdentical

containsOnly(string $type): \PHPUnit\Framework\Constraint\TraversableContainsOnly

Parameters:

  • $type: string

See also:

  • \PHPUnit\Framework\Constraint\TraversableContainsOnly

containsOnlyInstancesOf(string $className): \PHPUnit\Framework\Constraint\TraversableContainsOnly

Parameters:

  • $className: string

See also:

  • \PHPUnit\Framework\Constraint\TraversableContainsOnly

arrayHasKey((int|string) $key): \PHPUnit\Framework\Constraint\ArrayHasKey

Parameters:

  • $key: (int|string)

See also:

  • \PHPUnit\Framework\Constraint\ArrayHasKey

equalTo(mixed $value): \PHPUnit\Framework\Constraint\IsEqual

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\IsEqual

equalToCanonicalizing(mixed $value): \PHPUnit\Framework\Constraint\IsEqualCanonicalizing

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\IsEqualCanonicalizing

equalToIgnoringCase(mixed $value): \PHPUnit\Framework\Constraint\IsEqualIgnoringCase

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\IsEqualIgnoringCase

equalToWithDelta(mixed $value, float $delta): \PHPUnit\Framework\Constraint\IsEqualWithDelta

Parameters:

  • $value: mixed
  • $delta: float

See also:

  • \PHPUnit\Framework\Constraint\IsEqualWithDelta

isEmpty(): \PHPUnit\Framework\Constraint\IsEmpty

See also:

  • \PHPUnit\Framework\Constraint\IsEmpty

isWritable(): \PHPUnit\Framework\Constraint\IsWritable

See also:

  • \PHPUnit\Framework\Constraint\IsWritable

isReadable(): \PHPUnit\Framework\Constraint\IsReadable

See also:

  • \PHPUnit\Framework\Constraint\IsReadable

directoryExists(): \PHPUnit\Framework\Constraint\DirectoryExists

See also:

  • \PHPUnit\Framework\Constraint\DirectoryExists

fileExists(): \PHPUnit\Framework\Constraint\FileExists

See also:

  • \PHPUnit\Framework\Constraint\FileExists

greaterThan(mixed $value): \PHPUnit\Framework\Constraint\GreaterThan

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\GreaterThan

greaterThanOrEqual(mixed $value): \PHPUnit\Framework\Constraint\LogicalOr

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\LogicalOr

identicalTo(mixed $value): \PHPUnit\Framework\Constraint\IsIdentical

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\IsIdentical

isInstanceOf(string $className): \PHPUnit\Framework\Constraint\IsInstanceOf

Parameters:

  • $className: string

See also:

  • \PHPUnit\Framework\Constraint\IsInstanceOf

isType(string $type): \PHPUnit\Framework\Constraint\IsType

Parameters:

  • $type: string

See also:

  • \PHPUnit\Framework\Constraint\IsType

lessThan(mixed $value): \PHPUnit\Framework\Constraint\LessThan

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\LessThan

lessThanOrEqual(mixed $value): \PHPUnit\Framework\Constraint\LogicalOr

Parameters:

  • $value: mixed

See also:

  • \PHPUnit\Framework\Constraint\LogicalOr

matchesRegularExpression(string $pattern): \PHPUnit\Framework\Constraint\RegularExpression

Parameters:

  • $pattern: string

See also:

  • \PHPUnit\Framework\Constraint\RegularExpression

matches(string $string): \PHPUnit\Framework\Constraint\StringMatchesFormatDescription

Parameters:

  • $string: string

See also:

  • \PHPUnit\Framework\Constraint\StringMatchesFormatDescription

stringStartsWith(mixed $prefix): \PHPUnit\Framework\Constraint\StringStartsWith

Parameters:

  • $prefix: mixed

See also:

  • \PHPUnit\Framework\Constraint\StringStartsWith

stringContains(string $string, bool $case = true): \PHPUnit\Framework\Constraint\StringContains

Parameters:

  • $string: string
  • $case: bool

See also:

  • \PHPUnit\Framework\Constraint\StringContains

stringEndsWith(string $suffix): \PHPUnit\Framework\Constraint\StringEndsWith

Parameters:

  • $suffix: string

See also:

  • \PHPUnit\Framework\Constraint\StringEndsWith

countOf(int $count): \PHPUnit\Framework\Constraint\Count

Parameters:

  • $count: int

See also:

  • \PHPUnit\Framework\Constraint\Count

objectEquals(object $object, string $method = 'equals'): \PHPUnit\Framework\Constraint\ObjectEquals

Parameters:

  • $object: object
  • $method: string

See also:

  • \PHPUnit\Framework\Constraint\ObjectEquals

fail(string $message = ''): never-return

Fails a test with the given message.

Parameters:

  • $message: string

See also:

  • never-return

markTestIncomplete(string $message = ''): never-return

Mark the test as incomplete.

Parameters:

  • $message: string

See also:

  • never-return

markTestSkipped(string $message = ''): never-return

Mark the test as skipped.

Parameters:

  • $message: string

See also:

  • never-return

getCount(): int

Return the current assertion count.

resetCount(): void

Reset the assertion counter.


Generated by danog/phpdoc