DoctrineMapperAdapterTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 1 Features 1
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 1
b 1
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFindInvalidUuidReturnsNull() 0 7 1
1
<?php
2
/**
3
 * @author  Stefano Torresi (http://stefanotorresi.it)
4
 * @license See the file LICENSE.txt for copying permission.
5
 * ************************************************
6
 */
7
8
namespace Thorr\Nonce\Test\DataMapper;
9
10
use Doctrine\Common\Persistence\ObjectManager;
11
use PHPUnit_Framework_TestCase as TestCase;
12
use Thorr\Nonce\DataMapper\DoctrineMapperAdapter;
13
use Thorr\Nonce\Entity\Nonce;
14
15
class DoctrineMapperAdapterTest extends TestCase
16
{
17
    public function testFindInvalidUuidReturnsNull()
18
    {
19
        $objectManager = $this->getMock(ObjectManager::class);
20
        $adapter       = new DoctrineMapperAdapter(Nonce::class, $objectManager);
21
22
        $this->assertNull($adapter->find('foobar', 'barbaz'));
23
    }
24
}
25