Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions tests/Php85SyntaxDemoTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);

namespace OpenMapsight\TileProxy\Tests;

use PHPUnit\Framework\TestCase;

/**
* Temporary CI matrix smoke test: the pipe operator is a PHP 8.5 language feature.
* This file should parse and pass only on 8.5; older matrix jobs are expected to fail.
*/
class Php85SyntaxDemoTest extends TestCase
{
public function testPipeOperatorUppercasesALabel(): void
{
$label = 'tile-proxy'
|> strtoupper(...)
|> trim(...);

$this->assertSame('TILE-PROXY', $label);
}
}
Loading