phpmock\spy\Spy::getInvocations PHP Метод

getInvocations() публичный Метод

Returns the recorded function calls and its arguments.
public getInvocations ( ) : Invocation[]
Результат Invocation[] The recorded function arguments.
    public function getInvocations()
    {
        return $this->invocations;
    }

Usage Example

Пример #1
0
 /**
  * Tests spying.
  *
  * @param array    $expected
  * @param string   $name
  * @param callable $invocations
  *
  * @test
  * @dataProvider provideTestGetInvocations
  */
 public function testGetInvocations(array $expected, $name, callable $invocations)
 {
     $spy = new Spy(__NAMESPACE__, $name);
     $spy->enable();
     call_user_func($invocations);
     $this->assertEquals($expected, $spy->getInvocations());
 }
All Usage Examples Of phpmock\spy\Spy::getInvocations