diff --git a/Classes/ViewHelpers/Condition/AbstractClientInformationViewHelper.php b/Classes/ViewHelpers/Condition/AbstractClientInformationViewHelper.php deleted file mode 100644 index c7679adf6..000000000 --- a/Classes/ViewHelpers/Condition/AbstractClientInformationViewHelper.php +++ /dev/null @@ -1,43 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * Abstract ViewHelper around \TYPO3\CMS\Core\Utility\ClientUtility::getBrowserInfo(). - * - * @deprecated - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - * @subpackage ViewHelpers\Condition - * @see \TYPO3\CMS\Core\Utility\ClientUtility::getBrowserInfo() for valid values for both browsers and systems - * @see Tx_Vhs_ViewHelpers_Condition_BrowserViewHelper for an implementation of this class - * @see Tx_Vhs_ViewHelpers_Condition_SystemViewHelper for an implementation of this class - */ -abstract class Tx_Vhs_ViewHelpers_Condition_AbstractClientInformationViewHelper extends Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelper { -} diff --git a/Classes/ViewHelpers/Condition/BackendViewHelper.php b/Classes/ViewHelpers/Condition/BackendViewHelper.php deleted file mode 100644 index d7832c0c6..000000000 --- a/Classes/ViewHelpers/Condition/BackendViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Context_IsBackendViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Condition - */ -class Tx_Vhs_ViewHelpers_Condition_BackendViewHelper extends Tx_Vhs_ViewHelpers_If_Context_IsBackendViewHelper { -} diff --git a/Classes/ViewHelpers/Condition/BrowserViewHelper.php b/Classes/ViewHelpers/Condition/BrowserViewHelper.php deleted file mode 100644 index 9f0bd4861..000000000 --- a/Classes/ViewHelpers/Condition/BrowserViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Client_IsBrowserViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - * @subpackage ViewHelpers\Condition - */ -class Tx_Vhs_ViewHelpers_Condition_BrowserViewHelper extends Tx_Vhs_ViewHelpers_If_Client_IsBrowserViewHelper { -} diff --git a/Classes/ViewHelpers/Condition/CliViewHelper.php b/Classes/ViewHelpers/Condition/CliViewHelper.php deleted file mode 100644 index 19c49cd94..000000000 --- a/Classes/ViewHelpers/Condition/CliViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Context_IsCliViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Condition - */ -class Tx_Vhs_ViewHelpers_Condition_CliViewHelper extends Tx_Vhs_ViewHelpers_If_Context_IsCliViewHelper { -} diff --git a/Classes/ViewHelpers/Condition/ExtendViewHelper.php b/Classes/ViewHelpers/Condition/ExtendViewHelper.php deleted file mode 100644 index 1ed361745..000000000 --- a/Classes/ViewHelpers/Condition/ExtendViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Condition_ExtendViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Condition - */ -class Tx_Vhs_ViewHelpers_Condition_ExtendViewHelper extends Tx_Vhs_ViewHelpers_If_Condition_ExtendViewHelper { -} diff --git a/Classes/ViewHelpers/Condition/FrontendViewHelper.php b/Classes/ViewHelpers/Condition/FrontendViewHelper.php deleted file mode 100644 index 14a695865..000000000 --- a/Classes/ViewHelpers/Condition/FrontendViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Context_IsFrontendViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Condition - */ -class Tx_Vhs_ViewHelpers_Condition_FrontendViewHelper extends Tx_Vhs_ViewHelpers_If_Context_IsFrontendViewHelper { -} diff --git a/Classes/ViewHelpers/Condition/IsMobileViewHelper.php b/Classes/ViewHelpers/Condition/IsMobileViewHelper.php deleted file mode 100644 index 95a0e025f..000000000 --- a/Classes/ViewHelpers/Condition/IsMobileViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ -, dreipunktnull - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Client_IsMobileViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Björn Fromme , dreipunktnull - * @package Vhs - * @subpackage ViewHelpers\Condition - */ -class Tx_Vhs_ViewHelpers_Condition_IsMobileViewHelper extends Tx_Vhs_ViewHelpers_If_Client_IsMobileViewHelper { -} diff --git a/Classes/ViewHelpers/Condition/SystemViewHelper.php b/Classes/ViewHelpers/Condition/SystemViewHelper.php deleted file mode 100644 index b3ba66902..000000000 --- a/Classes/ViewHelpers/Condition/SystemViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Client_IsSystemViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - * @subpackage ViewHelpers\Condition - */ -class Tx_Vhs_ViewHelpers_Condition_SystemViewHelper extends Tx_Vhs_ViewHelpers_If_Client_IsSystemViewHelper { -} diff --git a/Classes/ViewHelpers/ConditionViewHelper.php b/Classes/ViewHelpers/ConditionViewHelper.php deleted file mode 100644 index 5318bca2a..000000000 --- a/Classes/ViewHelpers/ConditionViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_ConditionViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers - */ -class Tx_Vhs_ViewHelpers_ConditionViewHelper extends Tx_Vhs_ViewHelpers_If_ConditionViewHelper { -} diff --git a/Classes/ViewHelpers/Form/HasValidatorViewHelper.php b/Classes/ViewHelpers/Form/HasValidatorViewHelper.php deleted file mode 100644 index ebb29c4c7..000000000 --- a/Classes/ViewHelpers/Form/HasValidatorViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Form_HasValidatorViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Form - */ -class Tx_Vhs_ViewHelpers_Form_HasValidatorViewHelper extends Tx_Vhs_ViewHelpers_If_Form_HasValidatorViewHelper { -} diff --git a/Classes/ViewHelpers/Form/RequiredViewHelper.php b/Classes/ViewHelpers/Form/RequiredViewHelper.php deleted file mode 100644 index 59159a8a7..000000000 --- a/Classes/ViewHelpers/Form/RequiredViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Form_IsRequiredViewHelper - * for backwards compatibility - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Form - */ -class Tx_Vhs_ViewHelpers_Form_RequiredViewHelper extends Tx_Vhs_ViewHelpers_If_Form_IsRequiredViewHelper { -} diff --git a/Classes/ViewHelpers/If/Client/AbstractClientInformationViewHelper.php b/Classes/ViewHelpers/If/Client/AbstractClientInformationViewHelper.php deleted file mode 100644 index e26529887..000000000 --- a/Classes/ViewHelpers/If/Client/AbstractClientInformationViewHelper.php +++ /dev/null @@ -1,90 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Abstract ViewHelper around \TYPO3\CMS\Core\Utility\ClientUtility::getBrowserInfo(). - * - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - * @subpackage ViewHelpers\If\Client - * @see \TYPO3\CMS\Core\Utility\ClientUtility::getBrowserInfo() for valid values for both browsers and systems - * @see Tx_Vhs_ViewHelpers_Condition_BrowserViewHelper for an implementation of this class - * @see Tx_Vhs_ViewHelpers_Condition_SystemViewHelper for an implementation of this class - */ -abstract class Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper { - - /** - * @var string - */ - protected $userAgent = ''; - - /** - * Set the user-agent - * - * @param string $userAgent - * @return Tx_Vhs_ViewHelpers_Condition_AbstractClientInformationViewHelper - */ - public function setUserAgent($userAgent) { - $this->userAgent = $userAgent; - return $this; - } - - /** - * Return the user-agent - * - * @return string - */ - public function getUserAgent() { - if ($this->userAgent !== '') { - $userAgent = $this->userAgent; - } else { - $userAgent = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('HTTP_USER_AGENT'); - } - - return $userAgent; - } - - /** - * Return all browsers - * - * @return array - */ - public function getBrowsers() { - $clientInfo = \TYPO3\CMS\Core\Utility\ClientUtility::getBrowserInfo($this->getUserAgent()); - - return $clientInfo['all']; - } - - /** - * Return all systems - * - * @return array - */ - public function getSystems() { - $clientInfo = \TYPO3\CMS\Core\Utility\ClientUtility::getBrowserInfo($this->getUserAgent()); - - return $clientInfo['all_systems']; - } -} diff --git a/Classes/ViewHelpers/If/Client/IsBrowserViewHelper.php b/Classes/ViewHelpers/If/Client/IsBrowserViewHelper.php deleted file mode 100644 index c3a24dc07..000000000 --- a/Classes/ViewHelpers/If/Client/IsBrowserViewHelper.php +++ /dev/null @@ -1,78 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * ### Will be removed in 2.0 - * - * Please don't do user agent sniffing. This is bad practice. - * - * ### Condition: Client's Browser - * - * Condition ViewHelper which renders the `then` child if client's - * browser matches the `browser` argument - * - * ### Examples - * - * - * - * Thank you for using Google Chrome! - * - * - * - * - *
- *

Please download Google Chrome

- *

- * The particular system you are accessing uses features which - * only work in Google Chrome. For the best experience, download - * Chrome here: - * http://chrome.google.com/ - *

- * - * - * - * @deprecated - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - * @subpackage ViewHelpers\If\Client - */ -class Tx_Vhs_ViewHelpers_If_Client_IsBrowserViewHelper extends Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelper { - - /** - * Render method - * - * @param string $browser - * @return string - */ - public function render($browser) { - if (array_key_exists($browser, $this->getBrowsers())) { - $content = $this->renderThenChild(); - } else { - $content = $this->renderElseChild(); - } - - return $content; - } -} diff --git a/Classes/ViewHelpers/If/Client/IsMobileViewHelper.php b/Classes/ViewHelpers/If/Client/IsMobileViewHelper.php deleted file mode 100644 index c9ba9d0b7..000000000 --- a/Classes/ViewHelpers/If/Client/IsMobileViewHelper.php +++ /dev/null @@ -1,76 +0,0 @@ -, dreipunktnull - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * ### Will be removed in 2.0 - * - * Please don't do user agent sniffing. This is bad practice. - * - * ### Condition: Client is mobile device or not - * - * Condition ViewHelper which renders the `then` child if client - * is a mobile device. Uses regex patterns from http://detectmobilebrowsers.com/ - * by Chad Smith. Notice: The method to determine the client is not - * 100% exact as it is based on analyzing the user agent string and - * obviously you shouldn't use this viewhelper in a cached context. - * By default tablets are treated as desktop devices. Set 'includeTables' - * to TRUE to treat them as mobile devices though it's more reliable - * to check for maximum screen dimensions clientside. - * - * @deprecated - * @author Björn Fromme , dreipunktnull - * @package Vhs - * @subpackage ViewHelpers\If\Client - */ -class Tx_Vhs_ViewHelpers_If_Client_IsMobileViewHelper extends Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelper { - - const REGEX_VENDORS = '(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino'; - - const REGEX_TABLETS = '|android|ipad|playbook|silk'; - - const REGEX_DEVICES = '1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-'; - - /** - * Render method - * - * @param boolean $includeTablets - * @return string - */ - public function render($includeTablets = FALSE) { - $userAgent = $this->getUserAgent(); - $regexVendors = self::REGEX_VENDORS; - if (TRUE === $includeTablets) { - $regexVendors .= self::REGEX_TABLETS; - } - $regexDevices = self::REGEX_DEVICES; - $isMobile = preg_match('/' . $regexVendors . '/i', $userAgent) || preg_match('/' . $regexDevices . '/i', substr($userAgent, 0, 4)); - if (1 == $isMobile) { - $content = $this->renderThenChild(); - } else { - $content = $this->renderElseChild(); - } - return $content; - } -} diff --git a/Classes/ViewHelpers/If/Client/IsSystemViewHelper.php b/Classes/ViewHelpers/If/Client/IsSystemViewHelper.php deleted file mode 100644 index 8df1221d1..000000000 --- a/Classes/ViewHelpers/If/Client/IsSystemViewHelper.php +++ /dev/null @@ -1,64 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * ### Will be removed in 2.0 - * - * Please don't do user agent sniffing. This is bad practice. - * - * ### Condition: Client's System - * - * A condition ViewHelper which renders the `then` child if client's - * operating system matches the `system` argument. - * - * ### Example - * - * - * Thank you for using Mac! - * - * - * @deprecated - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - * @subpackage ViewHelpers\If\Client - */ -class Tx_Vhs_ViewHelpers_If_Client_IsSystemViewHelper extends Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelper { - - /** - * Render method - * - * @param string $system - * @return string - */ - public function render($system) { - foreach ($this->getSystems() as $sys) { - if ($sys === $system) { - return $this->renderThenChild(); - } - } - - return $this->renderElseChild(); - } -} diff --git a/Classes/ViewHelpers/If/Condition/ExtendViewHelper.php b/Classes/ViewHelpers/If/Condition/ExtendViewHelper.php deleted file mode 100644 index 11e2c1e2f..000000000 --- a/Classes/ViewHelpers/If/Condition/ExtendViewHelper.php +++ /dev/null @@ -1,284 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * ### Deprecation Notice - * - * Please switch to ``v:if``. This view helper will be removed in 2.0. - * - * ### Condition: Extended - * - * Uses advanced ChildNodeAccessor approach to enable - * very complex conditions supporting AND/OR and parenthesis - * syntax elements as well as array and object comparison. - * - * ### Example - * - * - * - * ({a} == {b} && {c} != NULL) OR {a} == NULL - * - * This text is completely ignored; only text in f:then is echoed - * - * Output if TRUE - * - * - * -<<<<<<< HEAD - * @deprecated - * @author Claus Due , Wildside A/S -======= - * @author Claus Due ->>>>>>> [TASK] Happy new year! - * @package Vhs - * @subpackage ViewHelpers\If\Condition - */ -class Tx_Vhs_ViewHelpers_If_Condition_ExtendViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper implements Tx_Fluid_Core_ViewHelper_Facets_ChildNodeAccessInterface { - - /** - * @var array - */ - protected $comparators = array('<', '>', '==', '>=', '<=', '!='); - - /** - * @var array - */ - protected $operators = array('AND', 'OR', '&&', '||'); - - /** - * @var array - */ - protected $stack = array(); - - /** - * Render method - * - * @return boolean - */ - public function render() { - $compoundedStack = $this->compoundStack($this->stack); - $evaluation = $this->evaluateStack($compoundedStack); - return Tx_Fluid_Core_Parser_SyntaxTree_BooleanNode::convertToBoolean($evaluation); - } - - /** - * @param array $stack - * @return boolean - */ - protected function compoundStack($stack) { - // compound referenced sub-stacks - foreach ($stack as $stackId => $stackItem) { - foreach ($stackItem as $stackItemIndex => $item) { - if (is_string($item) && strlen($item) === 23) { - $stack[$stackId][$stackItemIndex] = $stack[$item]; - unset($stack[$item]); - } - - } - } - // compound unnecessarily nested sub-stacks - foreach ($stack as $stackId => $stackItem) { - if (is_array($stackItem) === TRUE && count($stackItem) === 1) { - $stack[$stackId] = $stackItem; - } - } - return $stack; - } - - /** - * @param array $stack - * @return boolean - */ - protected function evaluateStack($stack) { - $evaluation = FALSE; - $leftSide = $comparator = $rightSide = $conjunction = NULL; - if (count($stack) === 0) { - return FALSE; - } elseif (count($stack) === 3) { - list ($leftSide, $comparator, $rightSide) = array_values($stack); - if (is_array($leftSide) === FALSE && is_array($comparator) === FALSE && is_array($rightSide) === FALSE) { - return Tx_Fluid_Core_Parser_SyntaxTree_BooleanNode::evaluateComparator($comparator, $leftSide, $rightSide); - } else { - $leftSide = $comparator = $rightSide = NULL; - } - } - foreach ($stack as $subject) { - if (is_array($subject) === TRUE) { - $partialEvaluation = $this->evaluateStack($subject); - if ($conjunction === NULL) { - $evaluation = $partialEvaluation; - } else { - $evaluation = $this->compareConjunction($evaluation, $conjunction, $partialEvaluation); - $conjunction = NULL; - } - } elseif ($leftSide && $comparator && $rightSide) { - $partialEvaluation = Tx_Fluid_Core_Parser_SyntaxTree_BooleanNode::evaluateComparator($comparator, $leftSide, $rightSide); - if ($conjunction === NULL) { - $evaluation = $partialEvaluation; - } else { - $evaluation = $this->compareConjunction($evaluation, $conjunction, $partialEvaluation); - $conjunction = NULL; - } - } elseif ($leftSide && $comparator && $rightSide && $conjunction === NULL) { - $conjunction = $subject; - $leftSide = $comparator = $rightSide = NULL; - } elseif ($leftSide === NULL) { - $leftSide = $subject; - } elseif ($comparator === NULL) { - $comparator = $subject; - } elseif ($rightSide === NULL) { - $rightSide = $subject; - } - } - return $evaluation; - } - - /** - * @param mixed $a - * @param string $conjunction - * @param mixed $b - * @return boolean - */ - protected function compareConjunction($a, $conjunction, $b) { - switch ($conjunction) { - case 'AND': - case 'and': - case '&&': - return ($this->extractValue($a) && $this->extractValue($b)); - case 'OR': - case 'or': - case '||': - return ($this->extractValue($a) || $this->extractValue($b)); - default: - break; - } - return FALSE; - } - - /** - * @param mixed $subject - * @return mixed - */ - protected function extractValue($subject) { - if ($subject instanceof Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode) { - $subject = $subject->evaluate($this->renderingContext); - } - return $subject; - } - - /** - * Sets the direct child nodes of the current syntax tree node. - * - * Will loop through every child node, extracting information about - * nested evaluations. Places each node in the according stack level. - * - * Each stack level increase causes a new stack ID to be generated - * and used in the following loops. When building the evaluation - * stacks this stack ID is used to finally compound the stacks into - * a consequetive list of hierarchal stacks which can then be evaluated - * by recursively inspecting each stack to accumulate a bool verdict. - * - * @param Tx_Fluid_Core_Parser_SyntaxTree_AbstractNode[] $childNodes - * @throws Exception - * @return void - */ - public function setChildNodes(array $childNodes) { - $stackLevel = 0; - $idStack = array(); - $parentStack = NULL; - foreach ($childNodes as $node) { - end($idStack); - $stackId = $idStack[key($idStack)]; - $stackItem = array(); - if ($node instanceof Tx_Fluid_Core_Parser_SyntaxTree_TextNode) { - $nodeContent = $node->evaluate($this->renderingContext); - $nodeContent = trim($nodeContent); - if (strpos($nodeContent, '(') === FALSE && strpos($nodeContent, ')') === FALSE) { - // will match any operator or comparator, inserting it in the stack - // will fail with an Exception if encountering an unrecognized string - // that is not a comparator or operator. - $stackItem = $nodeContent; - } else { - // match all delimiters, operators and comparators into one big - // sequence of syntactical components. - $matches = array(); - $matched = preg_match_all('/\(|\)|AND|OR|\&\&|\|\||NULL|FALSE|TRUE|[0-9]+/', $nodeContent, $matches); - if ($matched) { - foreach ($matches[0] as $syntacticalComponent) { - if ($syntacticalComponent === '(') { - $stackLevel ++; - $parentStack = $stackId; - array_push($idStack, uniqid('', TRUE)); - } elseif ($syntacticalComponent === ')') { - $stackLevel --; - $parentStack = $stackLevel <= 0 ? NULL : $parentStack; - $stackId = array_pop($idStack); - } else { - if ($parentStack && isset($this->stack[$parentStack]) === FALSE) { - $this->stack[$parentStack] = array(); - } - $this->addToStack($syntacticalComponent, uniqid('', TRUE), $parentStack); - } - } - - } - } - } elseif ($node instanceof Tx_Fluid_Core_Parser_SyntaxTree_BooleanNode) { - // BooleanNode gets added onto the stack to be evaluated later - $stackItem = $node->evaluate($this->renderingContext); - } elseif ($node instanceof Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode) { - // ViewHelperNode gets added onto the stack to be evaluated later - $stackItem = $node->evaluate($this->renderingContext); - } - $this->addToStack($stackItem, $stackId, $parentStack); - } - if ($stackLevel !== 0) { - throw new Exception( - 'Syntax error in expression, Extended Condition ViewHelper. Parenthesis count mismatch. Difference: ' . strval($stackLevel), - 1352653464 - ); - } - } - - /** - * @param mixed $item - * @param string $stackId - * @param string $parentStack - * @return void - */ - protected function addToStack($item, $stackId, $parentStack) { - if ((is_array($item) && count($item) > 0) || !is_array($item)) { - if (isset($this->stack[$stackId]) === FALSE) { - $this->stack[$stackId] = array(); - } - array_push($this->stack[$stackId], $item); - } - if ($parentStack !== NULL) { - if (in_array($stackId, $this->stack[$parentStack]) === FALSE) { - array_push($this->stack[$parentStack], $stackId); - } - } - } -} diff --git a/Classes/ViewHelpers/If/Form/IsRequiredViewHelper.php b/Classes/ViewHelpers/If/Form/IsRequiredViewHelper.php index 0988d50fc..d84b4f5bd 100644 --- a/Classes/ViewHelpers/If/Form/IsRequiredViewHelper.php +++ b/Classes/ViewHelpers/If/Form/IsRequiredViewHelper.php @@ -34,7 +34,7 @@ * @package Vhs * @subpackage ViewHelpers\Form */ -class Tx_Vhs_ViewHelpers_If_Form_IsRequiredViewHelper extends Tx_Vhs_ViewHelpers_Form_HasValidatorViewHelper { +class Tx_Vhs_ViewHelpers_If_Form_IsRequiredViewHelper extends Tx_Vhs_ViewHelpers_If_Form_HasValidatorViewHelper { /** * Render diff --git a/Classes/ViewHelpers/Iterator/ContainsViewHelper.php b/Classes/ViewHelpers/Iterator/ContainsViewHelper.php deleted file mode 100644 index de3cbbb88..000000000 --- a/Classes/ViewHelpers/Iterator/ContainsViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Iterator_ContainsViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Iterator - */ -class Tx_Vhs_ViewHelpers_Iterator_ContainsViewHelper extends Tx_Vhs_ViewHelpers_If_Iterator_ContainsViewHelper { -} diff --git a/Classes/ViewHelpers/Page/Content/FooterViewHelper.php b/Classes/ViewHelpers/Page/Content/FooterViewHelper.php deleted file mode 100644 index 04479c7e8..000000000 --- a/Classes/ViewHelpers/Page/Content/FooterViewHelper.php +++ /dev/null @@ -1,40 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * Alias of Tx_Vhs_ViewHelpers_Page_FooterViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * ViewHelper used to place header blocks in document footer - * - * @package Vhs - * @subpackage ViewHelpers\Content - * @deprecated - */ -class Tx_Vhs_ViewHelpers_Page_Content_FooterViewHelper extends Tx_Vhs_ViewHelpers_Page_FooterViewHelper { - -} diff --git a/Classes/ViewHelpers/Page/Content/GetViewHelper.php b/Classes/ViewHelpers/Page/Content/GetViewHelper.php deleted file mode 100644 index e6ae66733..000000000 --- a/Classes/ViewHelpers/Page/Content/GetViewHelper.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * Alias of Tx_Vhs_ViewHelpers_Content_GetViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * ViewHelper used to render content elements in Fluid page templates - * - * @package Vhs - * @subpackage ViewHelpers\Page\Content - * @deprecated - */ -class Tx_Vhs_ViewHelpers_Page_Content_GetViewHelper extends Tx_Vhs_ViewHelpers_Content_GetViewHelper { -} diff --git a/Classes/ViewHelpers/Page/Content/RenderViewHelper.php b/Classes/ViewHelpers/Page/Content/RenderViewHelper.php deleted file mode 100644 index 56d263566..000000000 --- a/Classes/ViewHelpers/Page/Content/RenderViewHelper.php +++ /dev/null @@ -1,39 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * Alias of Tx_Vhs_ViewHelpers_Content_RenderViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * ViewHelper used to render content elements in Fluid page templates - * - * @package Vhs - * @subpackage ViewHelpers\Page\Content - * @deprecated - */ -class Tx_Vhs_ViewHelpers_Page_Content_RenderViewHelper extends Tx_Vhs_ViewHelpers_Content_RenderViewHelper { -} diff --git a/Classes/ViewHelpers/Page/SiteUrlViewHelper.php b/Classes/ViewHelpers/Page/SiteUrlViewHelper.php deleted file mode 100644 index 356330fdf..000000000 --- a/Classes/ViewHelpers/Page/SiteUrlViewHelper.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * ### Page: Site Url - * - * #### DEPRECATED! - * - * Use `v:site.url` instead! - * - * Returns the website URL - * - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Page - * @deprecated Will be removed in 2.0 - */ -class Tx_Vhs_ViewHelpers_Page_SiteUrlViewHelper extends Tx_Vhs_ViewHelpers_Site_UrlViewHelper { - -} \ No newline at end of file diff --git a/Classes/ViewHelpers/Var/IssetViewHelper.php b/Classes/ViewHelpers/Var/IssetViewHelper.php deleted file mode 100644 index 6afb46a8e..000000000 --- a/Classes/ViewHelpers/Var/IssetViewHelper.php +++ /dev/null @@ -1,38 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * Alias of Tx_Vhs_ViewHelpers_If_Var_IssetViewHelper for - * backwards compatibility. - * - * Will be removed in 2.0 - * - * @deprecated - * @author Claus Due - * @package Vhs - * @subpackage ViewHelpers\Var - */ -class Tx_Vhs_ViewHelpers_Var_IssetViewHelper extends Tx_Vhs_ViewHelpers_If_Var_IssetViewHelper { -} diff --git a/Tests/Unit/ViewHelpers/Condition/BackendViewHelperTest.php b/Tests/Unit/ViewHelpers/Condition/BackendViewHelperTest.php deleted file mode 100644 index 8723e97bd..000000000 --- a/Tests/Unit/ViewHelpers/Condition/BackendViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Condition_BackendViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Condition/BrowserViewHelperTest.php b/Tests/Unit/ViewHelpers/Condition/BrowserViewHelperTest.php deleted file mode 100644 index abb2c6540..000000000 --- a/Tests/Unit/ViewHelpers/Condition/BrowserViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Condition_BrowserViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Condition/CliViewHelperTest.php b/Tests/Unit/ViewHelpers/Condition/CliViewHelperTest.php deleted file mode 100644 index e5dec605a..000000000 --- a/Tests/Unit/ViewHelpers/Condition/CliViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Condition_CliViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Condition/ExtendViewHelperTest.php b/Tests/Unit/ViewHelpers/Condition/ExtendViewHelperTest.php deleted file mode 100644 index a3026e557..000000000 --- a/Tests/Unit/ViewHelpers/Condition/ExtendViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Condition_ExtendViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Condition/FrontendViewHelperTest.php b/Tests/Unit/ViewHelpers/Condition/FrontendViewHelperTest.php deleted file mode 100644 index e2e3e3e4c..000000000 --- a/Tests/Unit/ViewHelpers/Condition/FrontendViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Condition_FrontendViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Condition/IsMobileViewHelperTest.php b/Tests/Unit/ViewHelpers/Condition/IsMobileViewHelperTest.php deleted file mode 100644 index d0195de95..000000000 --- a/Tests/Unit/ViewHelpers/Condition/IsMobileViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Condition_IsMobileViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Condition/SystemViewHelperTest.php b/Tests/Unit/ViewHelpers/Condition/SystemViewHelperTest.php deleted file mode 100644 index 9000c69fc..000000000 --- a/Tests/Unit/ViewHelpers/Condition/SystemViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Condition_SystemViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/ConditionViewHelperTest.php b/Tests/Unit/ViewHelpers/ConditionViewHelperTest.php deleted file mode 100644 index d2062c4a8..000000000 --- a/Tests/Unit/ViewHelpers/ConditionViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_ConditionViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Form/HasValidatorViewHelperTest.php b/Tests/Unit/ViewHelpers/Form/HasValidatorViewHelperTest.php deleted file mode 100644 index ae208ed49..000000000 --- a/Tests/Unit/ViewHelpers/Form/HasValidatorViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Form_HasValidatorViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Form/RequiredViewHelperTest.php b/Tests/Unit/ViewHelpers/Form/RequiredViewHelperTest.php deleted file mode 100644 index 0b06ccc54..000000000 --- a/Tests/Unit/ViewHelpers/Form/RequiredViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Form_RequiredViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/If/Client/AbstractClientInformationViewHelperTest.php b/Tests/Unit/ViewHelpers/If/Client/AbstractClientInformationViewHelperTest.php deleted file mode 100644 index 6b1ee31da..000000000 --- a/Tests/Unit/ViewHelpers/If/Client/AbstractClientInformationViewHelperTest.php +++ /dev/null @@ -1,85 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - */ -abstract class Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - - /** - * @var Tx_Vhs_ViewHelpers_If_Client_IsBrowserViewHelper - */ - protected $fixture; - - public function setUp() { - // Uses an actual implementation of this abstract class to test the methods - $this->fixture = new Tx_Vhs_ViewHelpers_If_Client_IsBrowserViewHelper(); - } - - public function tearDown() { - unset($this->fixture); - } - - /** - * @test - */ - public function getUserAgentReturnsString() { - $userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17'; - $this->fixture->setUserAgent($userAgent); - - $this->assertSame( - $userAgent, - $this->fixture->getUserAgent() - ); - } - - /** - * @test - */ - public function getBrowsersReturnsArray() { - $this->fixture->setUserAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17'); - - $this->assertSame( - array( - 'webkit' => '536.26', - 'safari' => '536.26' - ), - $this->fixture->getBrowsers() - ); - } - - /** - * @test - */ - public function getSystemsReturnsArray() { - $this->fixture->setUserAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17'); - - $this->assertSame( - array('mac'), - $this->fixture->getSystems() - ); - } -} diff --git a/Tests/Unit/ViewHelpers/If/Client/IsBrowserViewHelperTest.php b/Tests/Unit/ViewHelpers/If/Client/IsBrowserViewHelperTest.php deleted file mode 100644 index d797f74c2..000000000 --- a/Tests/Unit/ViewHelpers/If/Client/IsBrowserViewHelperTest.php +++ /dev/null @@ -1,32 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_If_Client_IsBrowserViewHelperTest extends Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/If/Client/IsMobileViewHelperTest.php b/Tests/Unit/ViewHelpers/If/Client/IsMobileViewHelperTest.php deleted file mode 100644 index b3d539364..000000000 --- a/Tests/Unit/ViewHelpers/If/Client/IsMobileViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_If_Client_IsMobileViewHelperTest extends Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/If/Client/IsSystemViewHelperTest.php b/Tests/Unit/ViewHelpers/If/Client/IsSystemViewHelperTest.php deleted file mode 100644 index 9e6566b15..000000000 --- a/Tests/Unit/ViewHelpers/If/Client/IsSystemViewHelperTest.php +++ /dev/null @@ -1,32 +0,0 @@ -, kaeufli.ch - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -/** - * @author Andreas Lappe , kaeufli.ch - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_If_Client_IsSystemViewHelperTest extends Tx_Vhs_ViewHelpers_If_Client_AbstractClientInformationViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/If/Condition/ExtendViewHelperTest.php b/Tests/Unit/ViewHelpers/If/Condition/ExtendViewHelperTest.php deleted file mode 100644 index ef7dbf4a9..000000000 --- a/Tests/Unit/ViewHelpers/If/Condition/ExtendViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_If_Condition_ExtendViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Iterator/ContainsViewHelperTest.php b/Tests/Unit/ViewHelpers/Iterator/ContainsViewHelperTest.php deleted file mode 100644 index 6058d10c9..000000000 --- a/Tests/Unit/ViewHelpers/Iterator/ContainsViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection on - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Iterator_ContainsViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Page/Content/FooterViewHelperTest.php b/Tests/Unit/ViewHelpers/Page/Content/FooterViewHelperTest.php deleted file mode 100644 index 4aa59aef2..000000000 --- a/Tests/Unit/ViewHelpers/Page/Content/FooterViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Page_Content_FooterViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Page/Content/GetViewHelperTest.php b/Tests/Unit/ViewHelpers/Page/Content/GetViewHelperTest.php deleted file mode 100644 index 6fd5a68c9..000000000 --- a/Tests/Unit/ViewHelpers/Page/Content/GetViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Page_Content_GetViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Page/Content/RenderViewHelperTest.php b/Tests/Unit/ViewHelpers/Page/Content/RenderViewHelperTest.php deleted file mode 100644 index 6f4211707..000000000 --- a/Tests/Unit/ViewHelpers/Page/Content/RenderViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Page_Content_RenderViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Page/SiteUrlViewHelperTest.php b/Tests/Unit/ViewHelpers/Page/SiteUrlViewHelperTest.php deleted file mode 100644 index 014b45d46..000000000 --- a/Tests/Unit/ViewHelpers/Page/SiteUrlViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Page_SiteUrlViewHelperTest extends Tx_Vhs_ViewHelpers_AbstractViewHelperTest { - -} diff --git a/Tests/Unit/ViewHelpers/Var/IssetViewHelperTest.php b/Tests/Unit/ViewHelpers/Var/IssetViewHelperTest.php deleted file mode 100644 index deff4e479..000000000 --- a/Tests/Unit/ViewHelpers/Var/IssetViewHelperTest.php +++ /dev/null @@ -1,33 +0,0 @@ - - * - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * This copyright notice MUST APPEAR in all copies of the script! - * ************************************************************* */ - -/** - * @protection off - * @author Claus Due - * @package Vhs - */ -class Tx_Vhs_ViewHelpers_Var_IssetViewHelperTest extends Tx_Vhs_ViewHelpers_If_Var_IssetViewHelperTest { - -}