public function testCanNotCopyFromNonTraversableTypes() { $stack = new TStack(); $data = new stdClass(); try { $stack->copyFrom($data); } catch (TInvalidDataTypeException $e) { return; } self::fail('An expected TInvalidDataTypeException was not raised'); }