Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TestWithJson.php

class TestWithJson

@psalm-immutable

@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Hierarchy

  • class \PHPUnit\Framework\Attributes\TestWithJson

Expanded class hierarchy of TestWithJson

1 file declares its use of TestWithJson
AttributeParser.php in vendor/phpunit/phpunit/src/Metadata/Parser/AttributeParser.php

File

vendor/phpunit/phpunit/src/Framework/Attributes/TestWithJson.php, line 19

Namespace

PHPUnit\Framework\Attributes
View source
final class TestWithJson {
    
    /**
     * @psalm-var non-empty-string
     */
    private readonly string $json;
    
    /**
     * @psalm-param non-empty-string $json
     */
    public function __construct(string $json) {
        $this->json = $json;
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public function json() : string {
        return $this->json;
    }

}

Members

Title Sort descending Modifiers Object type Summary
TestWithJson::$json private property @psalm-var non-empty-string
TestWithJson::json public function @psalm-return non-empty-string
TestWithJson::__construct public function @psalm-param non-empty-string $json
RSS feed
Powered by Drupal