[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/ -> cronlib_test.php (summary)

Unit tests for the cron.

Copyright: 2013 Tim Gusak <tim.gusak@remote-learner.net>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 181 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

cronlib_testcase:: (3 methods):
  cron_delete_from_temp_provider()
  generate_test_path()
  test_cron_delete_from_temp()


Class: cronlib_testcase  - X-Ref

cron_delete_from_temp_provider()   X-Ref
Data provider for cron_delete_from_temp.

return: array Provider data

generate_test_path($path, $isdir = false, $time = 0, $keep = false)   X-Ref
Function to populate node array.

param: string $path Path of directory or file
param: bool $isdir Is the node a directory
param: int $time modified time of the node in epoch
param: bool $keep Should the node exist after the delete function has run

test_cron_delete_from_temp($nodes, $expected)   X-Ref
Test removing files and directories from tempdir.

param: array $nodes List of files and directories
param: array $expected The expected results



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1