assertTrue($matcher->matches('CORE-1', 'CORE-1-login-form')); $this->assertTrue($matcher->matches('CORE-1', 'CORE-1/fix-oauth')); $this->assertTrue($matcher->matches('CORE-1', 'CORE-1_hotfix')); $this->assertTrue($matcher->matches('CORE-1', 'CORE-1')); $this->assertTrue($matcher->matches('CORE-1', 'core-1-login-form')); $this->assertTrue($matcher->matches('CORE-1', 'CORE-10-login-form')); $this->assertTrue($matcher->matches('CORE-1', 'MY-CORE-1-login-form')); } /** * Ensure references without the ticket key are not treated as matches. */ public function test_matcher_rejects_references_without_the_ticket_key(): void { $matcher = app(TicketKeyReferenceMatcher::class); $this->assertFalse($matcher->matches('CORE-1', 'CORE-2-login-form')); $this->assertFalse($matcher->matches('CORE-1', 'feature/auth-cleanup')); } }