3 namespace RedUNIT\Blackhole;
5 use RedUNIT\Blackhole as Blackhole;
6 use RedBeanPHP\Facade as R;
11 * This test suite tests whether we can properly
12 * obtain the version string. It also tests the availability
13 * of 'well known' entities like R, EID() and SimpleModel.
15 * @file RedUNIT/Blackhole/Version.php
16 * @desc Tests identification features.
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 Version extends Blackhole
31 public function testVersion()
33 $version = R::getVersion();
34 asrt( is_string( $version ), TRUE );
38 * Test whether basic tools are available for use.
42 public function testTools()
44 asrt( class_exists( '\\RedBean_SimpleModel' ), TRUE );
45 asrt( class_exists( '\\R' ), TRUE );
46 asrt( function_exists( 'EID' ), TRUE );