diff options
author | Andrey Andreev <narf@devilix.net> | 2017-12-20 18:57:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 18:57:39 +0100 |
commit | fbae310a44e5d6fb3f962d148c80a60cd38c884a (patch) | |
tree | 63ca4ac93f9fd6f3afe5a91ef25701391ec9e593 /tests/codeigniter/database/DB_test.php | |
parent | 3ecfcaa94bbae55fec8c2c9bbf8524c49816342f (diff) | |
parent | dfa52f3ed31696c58fdc85273f4408559233b19e (diff) |
Merge pull request #5354 from carusogabriel/refactoring-tests
Refactoring tests
Diffstat (limited to 'tests/codeigniter/database/DB_test.php')
-rw-r--r-- | tests/codeigniter/database/DB_test.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/codeigniter/database/DB_test.php b/tests/codeigniter/database/DB_test.php index dc4fae986..9d53fd6f2 100644 --- a/tests/codeigniter/database/DB_test.php +++ b/tests/codeigniter/database/DB_test.php @@ -36,8 +36,8 @@ class DB_test extends CI_TestCase { $db = Mock_Database_DB::DB($connection->set_dsn(DB_DRIVER), TRUE); - $this->assertTrue($db instanceof CI_DB); - $this->assertTrue($db instanceof CI_DB_Driver); + $this->assertInstanceOf('CI_DB', $db); + $this->assertInstanceOf('CI_DB_Driver', $db); } // ------------------------------------------------------------------------ @@ -53,9 +53,9 @@ class DB_test extends CI_TestCase { $connection = new Mock_Database_DB($config); $db = Mock_Database_DB::DB($connection->set_dsn(DB_DRIVER.'_failover'), TRUE); - $this->assertTrue($db instanceof CI_DB); - $this->assertTrue($db instanceof CI_DB_Driver); + $this->assertInstanceOf('CI_DB', $db); + $this->assertInstanceOf('CI_DB_Driver', $db); } */ -}
\ No newline at end of file +} |