diff --git a/src/Entity/User.php b/src/Entity/User.php
index <HASH>..<HASH> 100644
--- a/src/Entity/User.php
+++ b/src/Entity/User.php
@@ -34,7 +34,7 @@ class User
             throw new \OutOfRangeException(sprintf(
                 '%s does not contain a property by the name of "%s"',
                 __CLASS__,
-                $name
+                $property
             ));
         }
 
diff --git a/test/src/Entity/UserTest.php b/test/src/Entity/UserTest.php
index <HASH>..<HASH> 100644
--- a/test/src/Entity/UserTest.php
+++ b/test/src/Entity/UserTest.php
@@ -45,8 +45,6 @@ class UserTest extends \PHPUnit_Framework_TestCase
     }
 
     /**
-     * @expectedException PHPUnit_Framework_Error_Notice
-     * Acutal exception expected below but magic testing on phpunit give above
      * @expectedException \OutOfRangeException
      */
     public function testInvalidMagicSet()
User: use `$property` variable instead of (undefined) `$name`, fixes possible notice