Skip to content

Commit 23586ab

Browse files
Remove dot from extension
1 parent 7a6a9bb commit 23586ab

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Drivers/JsonDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function serialize($data): string
1919

2020
public function extension(): string
2121
{
22-
return '.json';
22+
return 'json';
2323
}
2424

2525
public function match($expected, $actual)

src/Drivers/VarDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function serialize($data): string
1414

1515
public function extension(): string
1616
{
17-
return '.php';
17+
return 'php';
1818
}
1919

2020
public function match($expected, $actual)

src/Drivers/XmlDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function serialize($data): string
2626

2727
public function extension(): string
2828
{
29-
return '.xml';
29+
return 'xml';
3030
}
3131

3232
public function match($expected, $actual)

src/Snapshot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function id(): string
4040

4141
public function filename(): string
4242
{
43-
return $this->id.$this->driver->extension();
43+
return $this->id.'.'.$this->driver->extension();
4444
}
4545

4646
public function exists(): bool

tests/Unit/SnapshotTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function it_has_a_filename_based_on_its_id_and_its_drivers_extension()
3737
$this->driver
3838
->expects($this->once())
3939
->method('extension')
40-
->willReturn('.php');
40+
->willReturn('php');
4141

4242
$snapshot = new Snapshot('abc', $this->filesystem, $this->driver);
4343

0 commit comments

Comments
 (0)