public function testShouldGetAttributeFromMutator()
{
// Arrange
$model = new class
{
use Attributes;
public function getSomeAttribute()
{
return 'something-else';
}
};
/* Enable mutator methods */
$model->mutable = true;
$model->some = 'some-value';
// Assert
$this->assertEquals('something-else', $model->some);
}