assertInstanceOf(Priority::class, Priority::critical()); } public function testCanCreateHigh() { $this->assertInstanceOf(Priority::class, Priority::high()); } public function testCanCreateModerate() { $this->assertInstanceOf(Priority::class, Priority::moderate()); } public function testCanCreateLow() { $this->assertInstanceOf(Priority::class, Priority::low()); } public function testCanCreateInformational() { $this->assertInstanceOf(Priority::class, Priority::informational()); } public function testCanCastToString() { $this->assertEquals('P5', (string)Priority::informational()); } }