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

AbstractTDBMObjectTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetManyToManyRelationshipDescriptor() 0 6 1
1
<?php
2
3
namespace TheCodingMachine\TDBM;
4
5
use PHPUnit\Framework\TestCase;
6
7
class AbstractTDBMObjectTest extends TestCase
8
{
9
10
    public function testGetManyToManyRelationshipDescriptor()
11
    {
12
        $object = new TDBMObject();
13
        $this->expectException(TDBMException::class);
14
        $this->expectExceptionMessage('Could not find many to many relationship descriptor key for "foo"');
15
        $object->_getManyToManyRelationshipDescriptor('foo');
16
    }
17
}
18