×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: userc865b
Added: Jan 28, 2018 10:19 PM
Views: 2724
Tags: no tags
  1. <?php
  2.         $weatherDataDummy= $this->prophesize(WeatherData::class)->reveal();
  3.         $criteriaNaming= new CritieriaNaming($weatherDataDummy);
  4.         $reflection = new \ReflectionClass($criteriaNaming);
  5.         $reflectionProperty=$reflection->getProperty("cityWeatherData");
  6.         $reflectionProperty->setAccessible(true);
  7.         $reflectionProperty->setValue($reflection,"dass");
  8.  
  9.  
  10.         var_dump($criteriaNaming->cityWeatherData)