assertSame($note, $noteObject->getNote()); $this->assertSame($type, $noteObject->getType()); } public function testGetterFunctionsThrowsException(): void { $this->expectException(InvalidArgumentException::class); $this->expectExceptionMessage(sprintf('Type value can be either "%s" or "%s".', Note::TYPE_INFO, Note::TYPE_WARNING)); $noteObject = new Note('Notes', 'randomType'); } }