assertSame('public', Modifiers::toString(Modifiers::PUBLIC)); } public function testToStringInvalid() { $this->expectException(InvalidArgumentException::class); $this->expectExceptionMessage('Unknown modifier 3'); Modifiers::toString(Modifiers::PUBLIC | Modifiers::PROTECTED); } }