dep-protobuf/php/tests/ComposerJsonTest.php
Zoey Greer b7b0d79813 Fix signedness comparison warning (#23354)
After we are sure `n` is greater than zero, it is safe to cast to unsigned.

Closes #23354

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/23354 from tempoz:tempoz-fix-signedness-error-in-upb-io-string-header 4d323c37d4
PiperOrigin-RevId: 805351826
2025-09-10 07:33:34 -07:00

22 lines
649 B
PHP

<?php
require_once('test_base.php');
require_once('test_util.php');
class ComposerJsonTest extends TestBase
{
public function testComposerJsonDistIsUpToDate()
{
$composerJson = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);
$composerJsonDist = json_decode(file_get_contents(__DIR__ . '/../composer.json.dist'), true);
// We don't want the subrepo to have "scripts" or "config"
unset(
$composerJson['scripts'],
$composerJson['config'],
$composerJson['autoload-dev']
);
$this->assertEquals($composerJson, $composerJsonDist);
}
}