Skip to content

Commit

Permalink
Import all phpunit and other necessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
helhum committed Apr 16, 2012
0 parents commit 5517593
Show file tree
Hide file tree
Showing 949 changed files with 196,000 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This repo contains all files needed to integrate the TYPO3 into travis infrastructure

1 change: 1 addition & 0 deletions dbimport/cli_users.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INSERT INTO be_users (pid, tstamp, username, password, admin, usergroup, disable, starttime, endtime, lang, email) VALUES (0,1276860841,'_cli_phpunit','5f4dcc3b5aa765d61d8327deb882cf99',0,'1',0,0,0,'','[email protected]');
2,298 changes: 2,298 additions & 0 deletions dbimport/introduction.sql

Large diffs are not rendered by default.

547 changes: 547 additions & 0 deletions typo3conf/ext/phpunit/Changelog

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions typo3conf/ext/phpunit/Classes/BackEnd/Ajax.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?php
/***************************************************************
* Copyright notice
*
* (c) 2008-2011 Kasper Ligaard <[email protected]>
* 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!
***************************************************************/

/**
* This class uses the new AJAX broker in Typo3 4.2.
*
* @see http://bugs.typo3.org/view.php?id=7096
*
* @package TYPO3
* @subpackage tx_phpunit
*
* @author Kasper Ligaard <[email protected]>
* @author Michael Klapper <[email protected]>
* @author Oliver Klee <[email protected]>
* @author Bastian Waidelich <[email protected]>
* @author Carsten Koenig <[email protected]>
*/
class Tx_Phpunit_BackEnd_Ajax {
/**
* Used to broker incoming requests to other calls.
* Called by typo3/ajax.php
*
* @param array $parameters
* additional parameters (not used)
* @param TYPO3AJAX $ajaxObj
* the AJAX object of this request
*
* @return void
*/
public function ajaxBroker(array $parameters, TYPO3AJAX $ajaxObj) {
// Checks for legal input ('white-listing').
$state = t3lib_div::_POST('state') === 'true' ? 'on' : 'off';
$checkbox = t3lib_div::_POST('checkbox');
switch ($checkbox) {
case 'failure':
case 'success':
case 'error':
case 'skipped':
case 'notimplemented':
case 'testdox':
case 'codeCoverage':
case 'showMemoryAndTime':
case 'runSeleniumTests':
break;
default:
$checkbox = FALSE;
}

if ($checkbox) {
$ajaxObj->setContentFormat('json');
$GLOBALS['BE_USER']->uc['moduleData']['tools_txphpunitM1'][$checkbox] = $state;
$GLOBALS['BE_USER']->writeUC();
$ajaxObj->addContent('success', TRUE);
} else {
$ajaxObj->setContentFormat('plain');
$ajaxObj->setError('Illegal input parameters.');
}
}
}
?>
Loading

0 comments on commit 5517593

Please sign in to comment.