| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class HostDefaultConfigTest extends JoyTest |
||
| 14 | { |
||
| 15 | protected function recipe(): string |
||
| 16 | { |
||
| 17 | return <<<'PHP' |
||
| 18 | <?php |
||
| 19 | namespace Deployer; |
||
| 20 | localhost(); |
||
| 21 | |||
| 22 | task('test', function () { |
||
| 23 | $port = currentHost()->getPort(); |
||
| 24 | writeln(empty($port) ? 'empty' : "port:$port"); |
||
| 25 | }); |
||
| 26 | PHP; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function testOnFunc() |
||
| 35 | } |
||
| 36 | } |
||
| 37 |