<p dir="auto">Hi,</p>
<p dir="auto">PropertyPath doesn't read or write object's properties that are handle with a <code class="notranslate">__call</code> method.</p>
<p dir="auto">Propel has a delegation behavior, that delegate setter/getter with <code class="notranslate">__call</code>,</p>
<p dir="auto">@bschussek , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fabpot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fabpot">@fabpot</a>  what do you think about that ?</p>
<p dir="auto">I can provide a PR.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/willdurand/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/willdurand">@willdurand</a></p>
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.x.x</p>
<p dir="auto"><strong>Description</strong><br>
The developer is not able to use the Symfony PHPUnit bridge and PHPUnit functions using Behat.</p>
<p dir="auto"><strong>How to reproduce</strong><br>
If I'm using PHPUnit to test my services and other methods belongs to my project and moreover, I'm using Behat for testing my endpoints the PHPUnit functions are not available to be used into Behat context clasess.</p>
<p dir="auto">Moreover, if I try to install PHPUnit to have those function available Symfony throw me an error:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
 Adding phpunit/phpunit as a dependency is discouraged in favor of Symfony's PHPUnit Bridge. 
                                                                                             
  * Instead:
    1. Remove it now: composer remove --dev phpunit/phpunit
    2. Use Symfony's bridge: composer require --dev phpunit"><pre class="notranslate"> Adding phpunit/phpunit as a dependency is discouraged <span class="pl-k">in</span> favor of Symfony<span class="pl-s"><span class="pl-pds">'</span>s PHPUnit Bridge. </span>
<span class="pl-s">                                                                                             </span>
<span class="pl-s">  * Instead:</span>
<span class="pl-s">    1. Remove it now: composer remove --dev phpunit/phpunit</span>
<span class="pl-s">    2. Use Symfony<span class="pl-pds">'</span></span>s bridge: composer require --dev phpunit</pre></div>