2 namespace TYPO3\CMS\Core\Tests
;
4 /***************************************************************
7 * (c) 2012-2013 Nicole Cordes <nicole.cordes@googlemail.com>
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
19 * This script is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * This copyright notice MUST APPEAR in all copies of the script!
25 ***************************************************************/
28 * This interface defines the methods provided by TYPO3\CMS\Core\Tests\TestCase::getAccessibleMock.::
30 * @author Nicole Cordes <nicole.cordes@googlemail.com>
32 interface AccessibleObjectInterface
{
34 * Calls the method $method using call_user_func* and returns its return value.
36 * @param string $methodName name of method to call, must not be empty
38 * @return mixed the return value from the method $methodName
40 public function _call($methodName);
43 * Calls the method $method without using call_user_func* and returns its return value.
45 * @param string $methodName name of method to call, must not be empty
46 * @param mixed &$arg1 first argument given to method $methodName
47 * @param mixed &$arg2 second argument given to method $methodName
48 * @param mixed &$arg3 third argument given to method $methodName
49 * @param mixed &$arg4 fourth argument given to method $methodName
50 * @param mixed &$arg5 fifth argument given to method $methodName
51 * @param mixed &$arg6 sixth argument given to method $methodName
52 * @param mixed &$arg7 seventh argument given to method $methodName
53 * @param mixed &$arg8 eighth argument given to method $methodName
54 * @param mixed &$arg9 ninth argument given to method $methodName
56 * @return mixed the return value from the method $methodName
58 public function _callRef(
59 $methodName, &$arg1 = NULL, &$arg2 = NULL, &$arg3 = NULL, &$arg4 = NULL, &$arg5= NULL, &$arg6 = NULL, &$arg7 = NULL,
60 &$arg8 = NULL, &$arg9 = NULL
64 * Sets the value of a property.
66 * @param string $propertyName name of property to set value for, must not be empty
67 * @param mixed $value the new value for the property defined in $propertyName
71 public function _set($propertyName, $value);
74 * Sets the value of a property by reference.
76 * @param string $propertyName name of property to set value for, must not be empty
77 * @param mixed &$value the new value for the property defined in $propertyName
81 public function _setRef($propertyName, &$value);
84 * Sets the value of a static property.
86 * @param string $propertyName name of property to set value for, must not be empty
87 * @param mixed $value the new value for the property defined in $propertyName
91 public function _setStatic($propertyName, $value);
94 * Gets the value of the given property.
96 * @param string $propertyName name of property to return value of, must not be empty
98 * @return mixed the value of the property $propertyName
100 public function _get($propertyName);
103 * Gets the value of the given static property.
105 * @param string $propertyName name of property to return value of, must not be empty
107 * @return mixed the value of the static property $propertyName
109 public function _getStatic($propertyName);