Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | function test() |
||
8 | { |
||
9 | $this->app->dispatch('tarantool.migrate'); |
||
10 | |||
11 | $mapper = $this->app->get(Mapper::class); |
||
12 | $note = $mapper->getRepository('note')->create('zzz'); |
||
13 | $this->assertSame($note->message, 'zzz'); |
||
14 | |||
15 | $note->message = 'test'; |
||
16 | $note->save(); |
||
17 | |||
18 | $this->assertNotNull($note->id); |
||
19 | $this->assertSame($note->message, 'test'); |
||
20 | } |
||
21 | } |
||
22 |
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.