Implementation of Mock class, remove ugly reflection class
diff --git a/tests/mocks/libraries/table.php b/tests/mocks/libraries/table.php
index a1e998b..1a6ff8d 100644
--- a/tests/mocks/libraries/table.php
+++ b/tests/mocks/libraries/table.php
@@ -1,3 +1,15 @@
 <?php
 
-class Mock_Libraries_Table extends CI_Table {}
\ No newline at end of file
+class Mock_Libraries_Table extends CI_Table {
+	
+	// Overide inaccesible private or protected method
+	public function __call($method, $params)
+	{
+		if (is_callable(array($this, '_'.$method)))
+		{
+			return call_user_func_array(array($this, '_'.$method), $params);
+		}
+
+		throw new BadMethodCallException('Method '.$method.' was not found');
+	}
+}
\ No newline at end of file