Add the possiblity to spy a property, not a whole object
Opened this issue · 0 comments
ismail1432 commented
<?php
$spyBase = new SpyBase();
$spyProperty = new SpyProperty('id', $propertyName, $propertyValue);
$spyBase->addSpyiedProperty('id', $propertyName, $propertyValue);
$spiedProperty =$spy->getSpiedProperty()
$spiedPropery->IsPropertyModified($propertyCurrentValue);
Maybe add a comparaison strategy such as strict comparaison and/or callback
$spiedPropery->IsPropertyModified($propertyCurrentValue, $strictComparaison = true, $comparaisonCallable = null);