TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Unit\Database\SqlParserTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Database\SqlParserTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 compileWhereClauseDoesNotDropClauses ()
 
 trimSqlReallyTrimsAllWhitespaceDataProvider ()
 
 trimSqlReallyTrimsAllWhitespace ($sql, $expected)
 

Protected Attributes

 $fixture
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase for TYPO3

Author
Patrick Schriner patri.nosp@m.ck.s.nosp@m.chrin.nosp@m.er@d.nosp@m.iemed.nosp@m.iale.nosp@m.n.de

Definition at line 21 of file SqlParserTest.php.

Member Function Documentation

◆ compileWhereClauseDoesNotDropClauses()

TYPO3\CMS\Core\Tests\Unit\Database\SqlParserTest::compileWhereClauseDoesNotDropClauses ( )

Regression test

Test:

Definition at line 37 of file SqlParserTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Database\SqlParserTest::setUp ( )

◆ trimSqlReallyTrimsAllWhitespace()

TYPO3\CMS\Core\Tests\Unit\Database\SqlParserTest::trimSqlReallyTrimsAllWhitespace (   $sql,
  $expected 
)
Test:
trimSqlReallyTrimsAllWhitespaceDataProvider
Parameters
string$sqlThe SQL to trim
string$expectedThe expected trimmed SQL with single space at the end

Definition at line 151 of file SqlParserTest.php.

References $result, and $sql.

◆ trimSqlReallyTrimsAllWhitespaceDataProvider()

TYPO3\CMS\Core\Tests\Unit\Database\SqlParserTest::trimSqlReallyTrimsAllWhitespaceDataProvider ( )

Data provider for trimSqlReallyTrimsAllWhitespace

See also
trimSqlReallyTrimsAllWhitespace

Definition at line 130 of file SqlParserTest.php.

Member Data Documentation

◆ $fixture

TYPO3\CMS\Core\Tests\Unit\Database\SqlParserTest::$fixture
protected

Definition at line 26 of file SqlParserTest.php.