From 10e7a32257b26c5609f4a745e3f80bde00da3a05 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 20 Feb 2014 16:42:16 +0200 Subject: Remove a few empty 'mock' classes --- tests/codeigniter/core/Benchmark_test.php | 2 +- tests/codeigniter/libraries/Parser_test.php | 2 +- tests/codeigniter/libraries/Typography_test.php | 2 +- tests/codeigniter/libraries/Upload_test.php | 2 +- tests/codeigniter/libraries/Useragent_test.php | 2 +- tests/mocks/core/benchmark.php | 3 --- tests/mocks/database/db/driver.php | 2 +- tests/mocks/database/db/querybuilder.php | 3 --- tests/mocks/libraries/parser.php | 3 --- tests/mocks/libraries/typography.php | 3 --- tests/mocks/libraries/upload.php | 3 --- tests/mocks/libraries/useragent.php | 3 --- 12 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 tests/mocks/core/benchmark.php delete mode 100644 tests/mocks/database/db/querybuilder.php delete mode 100644 tests/mocks/libraries/parser.php delete mode 100644 tests/mocks/libraries/typography.php delete mode 100644 tests/mocks/libraries/upload.php delete mode 100644 tests/mocks/libraries/useragent.php diff --git a/tests/codeigniter/core/Benchmark_test.php b/tests/codeigniter/core/Benchmark_test.php index 7fd0727e2..63b0e3d5a 100644 --- a/tests/codeigniter/core/Benchmark_test.php +++ b/tests/codeigniter/core/Benchmark_test.php @@ -4,7 +4,7 @@ class Benchmark_test extends CI_TestCase { public function set_up() { - $this->benchmark = new Mock_Core_Benchmark(); + $this->benchmark = new CI_Benchmark(); } // -------------------------------------------------------------------- diff --git a/tests/codeigniter/libraries/Parser_test.php b/tests/codeigniter/libraries/Parser_test.php index 3755cf1a0..2a2348793 100644 --- a/tests/codeigniter/libraries/Parser_test.php +++ b/tests/codeigniter/libraries/Parser_test.php @@ -4,7 +4,7 @@ class Parser_test extends CI_TestCase { public function set_up() { - $this->parser = new Mock_Libraries_Parser(); + $this->parser = new CI_Parser(); $this->ci_instance_var('parser', $this->parser); } diff --git a/tests/codeigniter/libraries/Typography_test.php b/tests/codeigniter/libraries/Typography_test.php index 5dba06243..e6ee7b05c 100644 --- a/tests/codeigniter/libraries/Typography_test.php +++ b/tests/codeigniter/libraries/Typography_test.php @@ -4,7 +4,7 @@ class Typography_test extends CI_TestCase { public function set_up() { - $this->type = new Mock_Libraries_Typography(); + $this->type = new CI_Typography(); $this->ci_instance('type', $this->type); } diff --git a/tests/codeigniter/libraries/Upload_test.php b/tests/codeigniter/libraries/Upload_test.php index 4d9e4a46e..a953d8329 100644 --- a/tests/codeigniter/libraries/Upload_test.php +++ b/tests/codeigniter/libraries/Upload_test.php @@ -5,7 +5,7 @@ class Upload_test extends CI_TestCase { function set_up() { $ci = $this->ci_instance(); - $ci->upload = new Mock_Libraries_Upload(); + $ci->upload = new CI_Upload(); $ci->security = new Mock_Core_Security(); $ci->lang = $this->getMock('CI_Lang', array('load', 'line')); $ci->lang->expects($this->any())->method('line')->will($this->returnValue(FALSE)); diff --git a/tests/codeigniter/libraries/Useragent_test.php b/tests/codeigniter/libraries/Useragent_test.php index aed38b8c2..c02f2bd9d 100644 --- a/tests/codeigniter/libraries/Useragent_test.php +++ b/tests/codeigniter/libraries/Useragent_test.php @@ -11,7 +11,7 @@ class UserAgent_test extends CI_TestCase { $_SERVER['HTTP_USER_AGENT'] = $this->_user_agent; $this->ci_vfs_clone('application/config/user_agents.php'); - $this->agent = new Mock_Libraries_UserAgent(); + $this->agent = new CI_User_agent(); $this->ci_instance_var('agent', $this->agent); } diff --git a/tests/mocks/core/benchmark.php b/tests/mocks/core/benchmark.php deleted file mode 100644 index d92be21db..000000000 --- a/tests/mocks/core/benchmark.php +++ /dev/null @@ -1,3 +0,0 @@ -