PHP specific constructs, functions, aproaches etc. which are quite tricky, but usefull sometimes...
public function testShouldChangeInternalAttributeValue()
{
$old = new Tenant('all', 'old')
$new = new Tenant('all', 'new');
$intent = new Intent('name', 'scope', $old);
(function (Tenant $newTenant) {
$this->tenant = $newTenant;
})->bindTo($intent, $intent)($new);
$this->assertAttributeEquals($new, 'tenant', $intent);
}