Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function test() |
||
10 | { |
||
11 | $this->app->dispatch('tarantool.migrate'); |
||
12 | |||
13 | $mapper = $this->app->get(Mapper::class); |
||
14 | $mapper->getRepository('note')->truncate(); |
||
15 | $note = $mapper->getRepository('note')->create('zzz'); |
||
16 | $this->assertSame($note->message, 'zzz'); |
||
17 | |||
18 | $note->message = 'test'; |
||
19 | $note->save(); |
||
20 | |||
21 | $this->assertNotNull($note->id); |
||
22 | $this->assertSame($note->message, 'test'); |
||
23 | } |
||
24 | |||
31 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.