| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | protected function setUp() |
||
| 16 | { |
||
| 17 | self::bootKernel(); |
||
| 18 | |||
| 19 | $this->application = new Application(self::$kernel); |
||
| 20 | $this->application->setAutoExit(false); |
||
| 21 | |||
| 22 | $this->execute('doctrine:database:drop --force --no-interaction'); |
||
| 23 | $this->execute('doctrine:database:create --no-interaction'); |
||
| 24 | $this->execute('doctrine:schema:create --no-interaction'); |
||
| 25 | $this->execute('doctrine:fixtures:load --no-interaction'); |
||
| 26 | |||
| 27 | $this->container = static::$kernel->getContainer(); |
||
|
|
|||
| 28 | |||
| 29 | $this->entityManager = $this->container->get('doctrine')->getManager(); |
||
| 30 | } |
||
| 31 | |||
| 48 |
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: