$factory->setCacheManager($mockCacheManager);
$cache = $factory->create('TYPO3_Cache_FactoryTest_Cache', 't3lib_cache_frontend_VariableFrontend', 't3lib_cache_backend_NullBackend');
- $this->assertType('t3lib_cache_frontend_VariableFrontend', $cache);
+ $this->assertInstanceOf('t3lib_cache_frontend_VariableFrontend', $cache);
}
/**
$path = PATH_t3lib;
$directories = t3lib_div::get_dirs($path);
- $this->assertType('array', $directories);
+ $this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $directories);
}
/**
rmdir($directory);
$this->assertTrue($directoryCreated);
- $this->assertType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $fileInfo);
+ $this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $fileInfo);
$this->assertEquals($directoryPath, $fileInfo['path']);
$this->assertEquals($directoryName, $fileInfo['file']);
$this->assertEquals($directoryName, $fileInfo['filebody']);
$testFile = 'fileadmin/media/someFile.png';
$fileInfo = t3lib_div::split_fileref($testFile);
- $this->assertType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $fileInfo);
+ $this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $fileInfo);
$this->assertEquals('fileadmin/media/', $fileInfo['path']);
$this->assertEquals('someFile.png', $fileInfo['file']);
$this->assertEquals('someFile', $fileInfo['filebody']);
*/
public function getTimestampReturnsInteger() {
$instance = new tx_scheduler_CronCmd('* * * * *');
- $this->assertType('integer', $instance->getTimestamp());
+ $this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_INT, $instance->getTimestamp());
}
/**
*/
public function getCronCommandSectionsReturnsArray() {
$instance = new tx_scheduler_CronCmd('* * * * *');
- $this->assertType('array', $instance->getCronCommandSections());
+ $this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_ARRAY, $instance->getCronCommandSections());
}
}
?>
\ No newline at end of file
*/
public function normalizeMonthReturnsInteger($monthName, $expectedInteger) {
$result = tx_scheduler_CronCmd_Normalize::normalizeMonth($monthName);
- $this->assertType('integer', $result);
+ $this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_INT, $result);
}
/**
*/
public function normalizeWeekdayReturnsInteger($weekday, $expectedInteger) {
$result = tx_scheduler_CronCmd_Normalize::normalizeWeekday($weekday);
- $this->assertType('integer', $result);
+ $this->assertInternalType(PHPUnit_Framework_Constraint_IsType::TYPE_INT, $result);
}
/**