Completed
Push — ezp26352-skip_csrf_check_on_re... ( 19f37a...6abe82 )
by
unknown
79:54 queued 33:48
created

AbstractPurgeAllSlotTest::testReceivePurgesAll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the eZ Publish Kernel package.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 */
9
namespace eZ\Publish\Core\MVC\Symfony\Cache\Tests\Http\SignalSlot;
10
11
abstract class AbstractPurgeAllSlotTest extends AbstractSlotTest implements PurgeAllExpectation
12
{
13
    /**
14
     * @dataProvider getReceivedSignals
15
     */
16
    public function testReceivePurgesAll($signal)
17
    {
18
        $this->cachePurgerMock->expects($this->once())->method('purgeAll');
19
        $this->cachePurgerMock->expects($this->never())->method('purgeForContent');
20
        parent::receive($signal);
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (receive() instead of testReceivePurgesAll()). Are you sure this is correct? If so, you might want to change this to $this->receive().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
21
    }
22
}
23