Completed
Push — master ( 7cb054...584ba8 )
by Tim
44:11 queued 26:38
created

ZeroInteractionsVerifier   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 9
rs 10
wmc 2
lcom 0
cbo 2
1
<?php
2
3
namespace Ouzo\Tests\Mock;
4
5
use Ouzo\Tests\AssertAdapter;
6
7
class ZeroInteractionsVerifier
8
{
9
    public static function verify($mock)
10
    {
11
        if (!empty($mock->_called_methods)) {
12
            AssertAdapter::fail("Expected zero interactions but got " . MethodCall::arrayToString($mock->_called_methods));
13
        }
14
    }
15
}