| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TrackOriginalTraitTest extends AbstractTest |
||
| 13 | { |
||
| 14 | public function test_getDirty_with_empty_array() |
||
| 21 | } |
||
| 22 | |||
| 23 | public function test_getDirty_with_fields() |
||
| 24 | { |
||
| 25 | $book = new Book(); |
||
| 26 | $book->name = 'name1'; |
||
| 27 | $book->title = 'title1'; |
||
| 28 | |||
| 29 | self::assertSame(['name' => 'Name1'], $book->getDirty(['name'])); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function test_syncOriginal() |
||
| 46 | } |
||
| 47 | } |
||
| 48 |