The header says "mit OAuth für KI-Assistenten" like the readme; the spec names the client neutrally and keeps claude.ai only where the connector is meant. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
21 lines
687 B
PHP
21 lines
687 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace LIT\MCP\Tests\Unit;
|
|
|
|
use LIT\MCP\Plugin;
|
|
|
|
/** The plugin header: version in step with Plugin::VERSION, neutral wording (no chatbot branding). */
|
|
final class PluginHeaderTest extends TestCase
|
|
{
|
|
public function testHeaderIsNeutralAndVersioned(): void
|
|
{
|
|
$header = (string) file_get_contents(dirname(__DIR__, 2) . '/wp-lit-mcp.php', false, null, 0, 1024);
|
|
|
|
self::assertMatchesRegularExpression('/^ \* Description: .*KI-Assistenten\.$/m', $header);
|
|
self::assertStringNotContainsString('claude', strtolower($header));
|
|
self::assertStringContainsString(' * Version: ' . Plugin::VERSION . "\n", $header);
|
|
}
|
|
}
|