Yaffs site version 1.1
[yaffs-website] / vendor / gabordemooij / redbean / testing / RedUNIT / Blackhole / Version.php
1 <?php
2
3 namespace RedUNIT\Blackhole;
4
5 use RedUNIT\Blackhole as Blackhole;
6 use RedBeanPHP\Facade as R;
7
8 /**
9  * Version
10  *
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.
14  *
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
19  *
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.
23  */
24 class Version extends Blackhole
25 {
26         /**
27          * Test version info.
28          *
29          * @return void
30          */
31         public function testVersion()
32         {
33                 $version = R::getVersion();
34                 asrt( is_string( $version ), TRUE );
35         }
36
37         /**
38          * Test whether basic tools are available for use.
39          *
40          * @return void
41          */
42         public function testTools()
43         {
44                 asrt( class_exists( '\\RedBean_SimpleModel' ), TRUE );
45                 asrt( class_exists( '\\R' ), TRUE );
46                 asrt( function_exists( 'EID' ), TRUE );
47         }
48 }