| Total Complexity | 6 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class ListTest extends ConsoleTest |
||
| 16 | { |
||
| 17 | private $proto; |
||
| 18 | |||
| 19 | public function setUp() |
||
| 20 | { |
||
| 21 | parent::setUp(); |
||
| 22 | |||
| 23 | $fs = new Files(); |
||
| 24 | $this->proto = $fs->normalizePath($this->app->dir('app') . 'proto/service.proto'); |
||
| 25 | |||
| 26 | // protoc can't figure relative paths |
||
| 27 | $this->proto = str_replace('Framework/../', '', $this->proto); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function tearDown() |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | public function testListEmpty() |
||
| 46 | { |
||
| 47 | $out = $this->runCommandDebug('grpc:services'); |
||
| 48 | |||
| 49 | $this->assertContains('No GRPC services', $out); |
||
| 50 | } |
||
| 51 | |||
| 52 | public function testListService() |
||
| 64 | } |
||
| 65 | } |