3 namespace RedUNIT\Base;
5 use RedUNIT\Base as Base;
6 use RedBeanPHP\Facade as R;
7 use RedBeanPHP\ToolBox as ToolBox;
8 use RedBeanPHP\QueryWriter\SQLiteT as SQLiteT;
13 * Tests whether we can close the database connection.
15 * @file RedUNIT/Base/Close.php
16 * @desc Tests database closing functionality.
17 * @author Gabor de Mooij and the RedBeanPHP Community
18 * @license New BSD/GPLv2
20 * (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community.
21 * This source file is subject to the New BSD/GPLv2 License that is bundled
22 * with this source code in the file license.txt.
24 class Close extends Base
27 * Test closing database connection.
31 public function testClose()
33 asrt( R::getDatabaseAdapter()->getDatabase()->isConnected(), TRUE );
35 asrt( R::getDatabaseAdapter()->getDatabase()->isConnected(), FALSE );