| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class UpdateCestTest extends TestCase |
||
| 12 | { |
||
| 13 | public function testExecuteDryRun() |
||
| 14 | { |
||
| 15 | $writer = $this->prophesize(WriteInterface::class); |
||
| 16 | $tester = new CommandTester(new UpdateTestCommand(null, $writer->reveal())); |
||
| 17 | $tester->execute([ |
||
| 18 | 'entity' => Hubby::class, |
||
| 19 | ]); |
||
| 20 | |||
| 21 | $display = $tester->getDisplay(); |
||
| 22 | |||
| 23 | $this->assertContains('UpdateCest', $display); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testExecuteForce() |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider.