| 1 | <?php |
||
| 7 | abstract class TestCase extends BaseTestCase |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Setup the test environment. |
||
| 11 | */ |
||
| 12 | public function setUp() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Define environment setup. |
||
| 31 | * |
||
| 32 | * @param \Illuminate\Foundation\Application $app |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | protected function getEnvironmentSetUp($app) |
||
| 40 | } |
||
| 41 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: