phpmock\spy\SpyTest::testNoException PHP Метод

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

Test the invocation of a none exception call.
public testNoException ( )
    public function testNoException()
    {
        eval("function testNoException() { }");
        $spy = new Spy(__NAMESPACE__, "testNoException");
        $spy->enable();
        testNoException();
        $invocation = $spy->getInvocations()[0];
        $this->assertFalse($invocation->isExceptionThrown());
        $this->assertNull($invocation->getException());
    }