public function testIsTrue() { $value = 5; $this->assertTrue($value == 5); }
public function testFunctionReturnsTrue() { $string = "Hello, world!"; $result = containsString($string, "world"); $this->assertTrue($result); } function containsString($haystack, $needle) { return strpos($haystack, $needle) !== false; }This method belongs to the PHPUnit package library.