diff --git a/lib/FromArray.php b/lib/FromArray.php
index <HASH>..<HASH> 100644
--- a/lib/FromArray.php
+++ b/lib/FromArray.php
@@ -9,9 +9,10 @@ namespace phputil\traits;
 trait FromArray {
 	
 	/**
-	 * Copy values from an array, not recursively.
+	 * Copy values from an array, *not* recursively.
 	 *
 	 * @param array $map	Map of values.
+	 * @return object		Return $this;
 	 */
 	function fromArray( array $map ) {
 		$vars = get_object_vars( $this ); // all but static ones
@@ -20,6 +21,7 @@ trait FromArray {
 				$this->{ $attr } = $value;
 			}
 		}
+		return $this;
 	}	
 	
 }
diff --git a/tests/FromArrayTest.php b/tests/FromArrayTest.php
index <HASH>..<HASH> 100644
--- a/tests/FromArrayTest.php
+++ b/tests/FromArrayTest.php
@@ -39,6 +39,12 @@ class FromArrayTest extends PHPUnit_Framework_TestCase {
 		
 		$this->assertEquals( $map, $r );
 	}
+	
+	function test_return_a_reference_to_this() {
+		$d = new DummyB();
+		$x = $d->fromArray( array() );
+		$this->assertEquals( $d, $x );
+	}
 
 }
@change Method fromArray of the trait FromArray now returns a reference to $this