Skip to main content
Glama

Nowcerts-mcp

YearsTest.php1.13 kB
<?php declare(strict_types=1); use Carbon\Carbon; use PHPUnit\Framework\TestCase; use BiegalskiLLC\NHTSAVehicleAPI\Services\Listing\Years; /** * Class YearsTest */ final class YearsTest extends TestCase { /** * @var Years */ protected $yearsServiceClass; /** * */ public function setUp(): void { parent::setUp(); $this->yearsServiceClass = new Years(); } /** * */ public function testEarliestYearMinimum(): void { self::assertEquals( $this->yearsServiceClass->limitEarliestYear(1920), 1960 ); } /** * */ public function testEarliestYearMaximum(): void { self::assertEquals( $this->yearsServiceClass->limitEarliestYear( (int) Carbon::now()->addYears(30)->format('Y') ), (int) Carbon::now()->addYears(2)->format('Y') ); } /** * */ public function testYearsListIsArray(): void { self::assertIsArray( $this->yearsServiceClass->listYears(1990) ); } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ReduceMyIns/Nowcerts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server