We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 12 | class CrudTraitFakeFieldsTest extends BaseCrudTraitTest |
||
| 13 | { |
||
| 14 | private $locale; |
||
| 15 | /** |
||
| 16 | * @var FakeColumnsModel |
||
| 17 | */ |
||
| 18 | private $model; |
||
| 19 | |||
| 20 | // DEFINE THE DATA |
||
| 21 | |||
| 22 | private $extras = [ |
||
| 23 | 'extras_first' => 'Extras first', |
||
| 24 | 'extras_second' => 'Extras second', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | private $extras_translatable = [ |
||
| 28 | 'en' => [ |
||
| 29 | 'extras_translatable_first' => 'extras_translatable first en', |
||
| 30 | 'extras_translatable_second' => 'extras_translatable second en', |
||
| 31 | ], |
||
| 32 | 'ro' => [ |
||
| 33 | 'extras_translatable_first' => 'extras_translatable first ro', |
||
| 34 | 'extras_translatable_second' => 'extras_translatable second ro', |
||
| 35 | ], |
||
| 36 | |||
| 37 | ]; |
||
| 38 | |||
| 39 | private $fake_object = [ |
||
| 40 | 'fake_object_first' => 'fake_object first', |
||
| 41 | 'fake_object_second' => 'fake_object second', |
||
| 42 | ]; |
||
| 43 | |||
| 44 | private $fake_assoc_array = [ |
||
| 45 | 'fake_assoc_array_first' => 'fake_assoc_array first', |
||
| 46 | 'fake_assoc_array_second' => 'fake_assoc_array second', |
||
| 47 | ]; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Setup function for each test. |
||
| 51 | */ |
||
| 52 | protected function setUp() |
||
| 72 | |||
| 73 | public function testExtrasGetFaked() |
||
| 80 | |||
| 81 | public function testExtrasTranslatableGetFaked() |
||
| 88 | |||
| 89 | public function testFakeObjectGetsFaked() |
||
| 99 | |||
| 100 | public function testFakeAssocArrayGetsFaked() |
||
| 110 | } |
||
| 111 |
This check marks property names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString.