Пример #1
0
 /** @test */
 public function itShouldBeInvokedObjectType()
 {
     $obj = $this->getMock('InvokedObjMock', ['__invoke']);
     $obj->method('__invoke')->willReturn('invoked');
     $r = new Reflector($obj);
     $this->assertTrue($r->isInvokedObject());
     $rf = $r->getReflector();
     $this->assertSame('invoked', $rf->invoke($obj));
 }