Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 10
0.00% covered (danger)
0.00%
0 / 7
CRAP
0.00% covered (danger)
0.00%
0 / 1
TestDescriptor
0.00% covered (danger)
0.00%
0 / 10
0.00% covered (danger)
0.00%
0 / 7
56
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
 getNamespace
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getClassName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setFilename
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getFilename
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getFullClassname
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDuration
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare( strict_types = 1 );
4
5namespace MediaWiki\Composer\PhpUnitSplitter;
6
7/**
8 * @license GPL-2.0-or-later
9 */
10class TestDescriptor {
11
12    private string $className;
13    private array $namespace;
14    private ?string $filename;
15    private int $duration;
16
17    public function __construct(
18        string $className,
19        array $namespace,
20        ?string $filename = null,
21        int $duration = 0
22    ) {
23        $this->className = $className;
24        $this->namespace = $namespace;
25        $this->filename = $filename;
26        $this->duration = $duration;
27    }
28
29    public function getNamespace(): array {
30        return $this->namespace;
31    }
32
33    public function getClassName(): string {
34        return $this->className;
35    }
36
37    public function setFilename( string $filename ): void {
38        $this->filename = $filename;
39    }
40
41    public function getFilename(): ?string {
42        return $this->filename;
43    }
44
45    public function getFullClassname(): string {
46        return implode( '\\', $this->namespace ) . '\\' . $this->className;
47    }
48
49    public function getDuration(): int {
50        return $this->duration;
51    }
52
53}