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

testGetManyToManyRelationshipDescriptor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TheCodingMachine\TDBM;
4
5
use PHPUnit\Framework\TestCase;
6
7
class AbstractTDBMObjectTest extends TestCase
8
{
9
    public function testGetManyToManyRelationshipDescriptor()
10
    {
11
        $object = new TDBMObject();
12
        $this->expectException(TDBMException::class);
13
        $this->expectExceptionMessage('Could not find many to many relationship descriptor key for "foo"');
14
        $object->_getManyToManyRelationshipDescriptor('foo');
15
    }
16
}
17