AsyncUnit
  • Labrador AsyncUnit
  • Tutorials
    • Getting Started
    • TestCase Hooks
    • Test Suites
    • Disabling Tests
    • Data Providers
    • Making Expectations
    • Test Timeout
  • How To
    • Writing Custom Assertions
  • Reference
    • Assertions
    • Events
    • Hooks
    • CLI Tool
    • Internal Overview
  • AsyncUnit vs PHPUnit
  • Roadmap
Powered by GitBook
On this page

Was this helpful?

  1. Reference

Assertions

assert()->arrayEquals(array $expected, array $actual, string $message = null)
asyncAssert()->arrayEquals(array $expected, Promise|Generator|Coroutine $actual, string $message = null)
assert()->floatEquals(float $expected, float $actual, string $message = nulL)
asyncAssert()->floatEquals(float $expected, Promise|Generator|Coroutine $actual, string $message = null)
assert()->intEquals(int $expected, int $actual, string $message = null)
asyncAssert()->intEquals(int $expected, Promise|Generator|Coroutine $actual, string $message = null)
assert()->stringEquals(string $expected, string $actual, string $message = null)
asyncAssert()->stringEquals(string $expected, Promise|Generator|Coroutine $actual, string $message = null)
assert()->isTrue(bool $actual, string $message = null)
asyncAssert()->isTrue(Promise|Generator|Coroutine $actual, string $message = null)
assert()->isFalse(bool $actual, string $message = null)
asyncAssert()->isFalse(Promise|Generator|Coroutine $actual, string $message = null)
assert()->isNull(mixed $actual, string $message = null)
asyncAssert()->isNull(Promise|Generator|Coroutine $actual, string $message = null)
PreviousWriting Custom AssertionsNextEvents

Last updated 4 years ago

Was this helpful?