For example I have class
class Car
{
private $color='red';
}
After I do mock object
$carMock = $this->getMockBuilder(Car::class)->getMock();
So now I wanna get private property color of Car class
How to do it?!
I can do public method like getCar and it will work, but I wanna look for another way.
I tried use ReflectionClass for it but it was wrong.