Passed
Pull Request — master (#146)
by David
03:00
created

TDBMObjectTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 2
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testJsonSerialize() 0 6 1
1
<?php
2
3
namespace TheCodingMachine\TDBM;
4
5
use PHPUnit\Framework\TestCase;
6
7
class TDBMObjectTest extends TestCase
8
{
9
    public function testJsonSerialize()
10
    {
11
        $object = new TDBMObject();
12
        $this->expectException(TDBMException::class);
13
        $this->expectExceptionMessage('Json serialization is only implemented for generated beans.');
14
        $object->jsonSerialize();
15
    }
16
}
17