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

Breadcrumb

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

class AfterTestMethodCalled

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Test\AfterTestMethodCalled implements \PHPUnit\Event\Event

Expanded class hierarchy of AfterTestMethodCalled

File

vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterTestMethodCalled.php, line 22

Namespace

PHPUnit\Event\Test
View source
final class AfterTestMethodCalled implements Event {
    private readonly Telemetry\Info $telemetryInfo;
    
    /**
     * @psalm-var class-string
     */
    private readonly string $testClassName;
    private readonly Code\ClassMethod $calledMethod;
    
    /**
     * @psalm-param class-string $testClassName
     */
    public function __construct(Telemetry\Info $telemetryInfo, string $testClassName, Code\ClassMethod $calledMethod) {
        $this->telemetryInfo = $telemetryInfo;
        $this->testClassName = $testClassName;
        $this->calledMethod = $calledMethod;
    }
    public function telemetryInfo() : Telemetry\Info {
        return $this->telemetryInfo;
    }
    
    /**
     * @psalm-return class-string
     */
    public function testClassName() : string {
        return $this->testClassName;
    }
    public function calledMethod() : Code\ClassMethod {
        return $this->calledMethod;
    }
    public function asString() : string {
        return sprintf('After Test Method Called (%s::%s)', $this->calledMethod
            ->className(), $this->calledMethod
            ->methodName());
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
AfterTestMethodCalled::$calledMethod private property
AfterTestMethodCalled::$telemetryInfo private property
AfterTestMethodCalled::$testClassName private property @psalm-var class-string
AfterTestMethodCalled::asString public function Overrides Event::asString
AfterTestMethodCalled::calledMethod public function
AfterTestMethodCalled::telemetryInfo public function Overrides Event::telemetryInfo
AfterTestMethodCalled::testClassName public function @psalm-return class-string
AfterTestMethodCalled::__construct public function @psalm-param class-string $testClassName

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal