forked from icanhazstring/systemctl-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d62b870
commit a4ccae8
Showing
6 changed files
with
143 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace icanhazstring\SystemCtl\Unit; | ||
|
||
/** | ||
* Class Mount | ||
* | ||
* @package icanhazstring\SystemCtl\Unit | ||
*/ | ||
class Mount extends AbstractUnit | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public const UNIT = 'mount'; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected function getUnitSuffix(): string | ||
{ | ||
return static::UNIT; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ public function itDeterminesTheCorrectAmountOfUnitsDataProvider(): array | |
nonservice.slice active running | ||
nonservice.swap active running | ||
nonservice.target active running | ||
nonservice.mount active running | ||
superservice.mount active running | ||
awesomeservice.mount active running | ||
superservice.automount active running | ||
|
@@ -58,6 +59,7 @@ public function itDeterminesTheCorrectAmountOfUnitsDataProvider(): array | |
nonservice.slice active running | ||
nonservice.swap active running | ||
nonservice.target active running | ||
nonservice.mount active running | ||
superservice.service active running | ||
awesomeservice.service active running | ||
● [email protected] loaded failed failed | ||
|
@@ -107,7 +109,7 @@ public function itDeterminesTheCorrectAmountOfUnitsDataProvider(): array | |
[ | ||
'output' => $output, | ||
'suffix' => 'mount', | ||
'amount' => 2, | ||
'amount' => 4, | ||
], | ||
[ | ||
'output' => $output, | ||
|
@@ -151,6 +153,7 @@ public function itOnlyExtractsTheUnitNamesDataProvider(): array | |
a-slice.slice Active running | ||
a-swap.swap Active running | ||
a-target.target Active running | ||
a-mount.mount Active running | ||
super.mount Active running | ||
awesome.mount Active running | ||
super.automount Active running | ||
|
@@ -162,6 +165,7 @@ public function itOnlyExtractsTheUnitNamesDataProvider(): array | |
nonservice.slice Active running | ||
nonservice.swap Active running | ||
nonservice.target Active running | ||
nonservice.mount Active running | ||
[email protected] Active running | ||
[email protected] Active running | ||
● [email protected] loaded failed failed | ||
|
@@ -239,8 +243,10 @@ public function itOnlyExtractsTheUnitNamesDataProvider(): array | |
'output' => $output, | ||
'suffix' => 'mount', | ||
'units' => [ | ||
'a-mount', | ||
'super', | ||
'awesome', | ||
'nonservice', | ||
], | ||
], | ||
[ | ||
|