getMethod('setServer'); $setMethod->setAccessible(true); $setMethod->invokeArgs($adapter, [new StubAbstractServer]); $getMethod = $reflector->getMethod('getServer'); $getMethod->setAccessible(true); $this->assertTrue($getMethod->invoke($adapter) instanceof StubAbstractServer); } }