getConstants(); unset($constants['validValues']); foreach ($constants as $name => $value) { self::assertTrue(HttpVerb::valueExists($value), "{$name}: {$value}"); } } public function testValueExists() { $class = new \ReflectionClass('YooKassa\Common\HttpVerb'); $constants = $class->getConstants(); unset($constants['validValues']); $firstValue = reset($constants); self::assertTrue(HttpVerb::valueExists($firstValue)); self::assertFalse(HttpVerb::valueExists('nonexistent_value')); } public function testGetValidValues() { $values = HttpVerb::getValidValues(); self::assertTrue(is_array($values)); self::assertNotEmpty($values); } public function testGetEnabledValues() { $values = HttpVerb::getEnabledValues(); self::assertTrue(is_array($values)); } }