We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7467fef + 5e0c5d7 commit 8967d17Copy full SHA for 8967d17
component/File.php
@@ -11,6 +11,11 @@ public function __construct(
11
) {
12
}
13
14
+ public function getPath(): string
15
+ {
16
+ return $this->path;
17
+ }
18
+
19
public function exist(): bool
20
{
21
return file_exists($this->path);
test/FileTest.php
@@ -33,6 +33,13 @@ public function tearDown(): void
33
unlink($this->filePath);
34
35
36
+ public function testGetPath(): void
37
38
+ $result = $this->fixture->getPath();
39
40
+ $this->assertIsString($result);
41
42
43
public function testGet(): void
44
45
$result = $this->fixture->exist();
0 commit comments