Example #1
0
 /**
  * Sets the data type of this argument that is also used for property mapping.
  * @param string $dataType
  * @return \TYPO3\FLOW3\Mvc\Controller\Argument $this
  */
 public function setDataType($dataType)
 {
     $this->dataType = \TYPO3\FLOW3\Utility\TypeHandling::normalizeType($dataType);
     return $this;
 }
Example #2
0
 /**
  * @test
  * @dataProvider normalizeTypes
  */
 public function normalizeTypesReturnsNormalizedType($type, $normalized)
 {
     $this->assertEquals(\TYPO3\FLOW3\Utility\TypeHandling::normalizeType($type), $normalized);
 }