Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
$this->assertSame(42, $result); $this->assertEquals("42", 42); // loose equality $this->assertTrue($value); $this->assertNull($value); $this->assertCount(3, $collection); $this->assertContains("Alice", $names); $this->assertArrayHasKey("id", $data); $this->assertStringContainsString("hello", $str); $this->assertInstanceOf(User::class, $obj); $this->expectException(InvalidArgumentException::class);
Result
Open