Completed
Push — master ( 4e4cd8...063296 )
by Maksim
16s
created

HybridResultTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testTransformedResultDefaultsToNull() 0 9 1
1
<?php
2
3
/*
4
 * This file is part of the FOSElasticaBundle package.
5
 *
6
 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace FOS\ElasticaBundle\Tests;
13
14
use Elastica\Result;
15
use FOS\ElasticaBundle\HybridResult;
16
17
class HybridResultTest extends \PHPUnit_Framework_TestCase
18
{
19
    public function testTransformedResultDefaultsToNull()
20
    {
21
        $result = new Result([]);
22
23
        $hybridResult = new HybridResult($result);
24
25
        $this->assertSame($result, $hybridResult->getResult());
26
        $this->assertNull($hybridResult->getTransformed());
27
    }
28
}
29