1 : <?php
2 : /**
3 : * This file is part of phpUnderControl.
4 : *
5 : * PHP Version 5.2.0
6 : *
7 : * Copyright (c) 2007-2008, Manuel Pichler <mapi@phpundercontrol.org>.
8 : * All rights reserved.
9 : *
10 : * Redistribution and use in source and binary forms, with or without
11 : * modification, are permitted provided that the following conditions
12 : * are met:
13 : *
14 : * * Redistributions of source code must retain the above copyright
15 : * notice, this list of conditions and the following disclaimer.
16 : *
17 : * * Redistributions in binary form must reproduce the above copyright
18 : * notice, this list of conditions and the following disclaimer in
19 : * the documentation and/or other materials provided with the
20 : * distribution.
21 : *
22 : * * Neither the name of Manuel Pichler nor the names of his
23 : * contributors may be used to endorse or promote products derived
24 : * from this software without specific prior written permission.
25 : *
26 : * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 : * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 : * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29 : * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30 : * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
31 : * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
32 : * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
33 : * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34 : * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 : * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
36 : * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 : * POSSIBILITY OF SUCH DAMAGE.
38 : *
39 : * @category QualityAssurance
40 : * @package PhpUnderControl
41 : * @subpackage Documentation
42 : * @author Manuel Pichler <mapi@phpundercontrol.org>
43 : * @copyright 2007-2008 Manuel Pichler. All rights reserved.
44 : * @license http://www.opensource.org/licenses/bsd-license.php BSD License
45 : * @version SVN: $Id: PhpUnderControl.php 2631 2008-03-18 15:23:55Z mapi $
46 : * @link http://www.phpundercontrol.org/
47 : */
48 :
49 : /**
50 : * Documentation/Example/Test class for environment specific code.
51 : *
52 : * @category QualityAssurance
53 : * @package PhpUnderControl
54 : * @subpackage Documentation
55 : * @author Manuel Pichler <mapi@phpundercontrol.org>
56 : * @copyright 2007-2008 Manuel Pichler. All rights reserved.
57 : * @license http://www.opensource.org/licenses/bsd-license.php BSD License
58 : * @version Release: @package_version@
59 : * @link http://www.phpundercontrol.org/
60 : */
61 : class phpucMergeCodeHelper
62 : {
63 : /**
64 : * Returns a php 5.2.0 specific token
65 : *
66 : * @return string
67 : */
68 : public function version520()
69 : {
70 0 : return '5.2.0';
71 : }
72 :
73 : /**
74 : * Returns a php 5.2.5 specific token
75 : *
76 : * @return string
77 : */
78 : public function version525()
79 : {
80 0 : include dirname( __FILE__ ) . '/MergeCode525.php';
81 :
82 0 : $obj = new phpucMergeCode525();
83 :
84 0 : return $obj->version();
85 : }
86 :
87 : /**
88 : * Returns current php version specific token.
89 : *
90 : * @return string
91 : */
92 : public function versionAny()
93 : {
94 1 : return phpversion();
95 : }
|