yana

phpDocumentor v 1.4.0

Class plugin_check

Description

collection of unit- and performance-tests
  • access: public
Plugin
   |
   --plugin_check
Method Summary

Methods

Run performance tests
bool check_performance (
array $ARGS
)
List of parameters:
Name Type Description
$ARGS array array of params passed to the function
Description:
This procedure does a test-run on several units. Each is run X times. The overall time for each test and the number of test-runs are displayed as a numbered list.
If a test-run fails, the performance test is skipped and a failure message will be produced instead.
Use the argument 'target' to limit the performance run to a certain test scenario.
parameters taken:
  • int target (optional) number of performance test to take (default = all)
  • access: public
SQL command line interface
bool check_sql (
array $ARGS
)
List of parameters:
Name Type Description
$ARGS array array of params passed to the function
Description:
This is a console application to run tests on the FileDB database driver and SQL-/Query-parser. It takes a SQL command as input and displays the transformed internal query as it would be understood by the query-parser, together with the results of the query.
Note: as this is meant for testing purposes only, you cannot modify values via this console application. Queries of type INSERT, UPDATE, and DELETE are parsed and ignored. Also you cannot access the user-database via this interface.
parameters taken:
  • string db name of the database to run the query on
  • string sql sql code
  • access: public
Procedure to run unit test
bool check_unit (
array $ARGS
)
List of parameters:
Name Type Description
$ARGS array array of params passed to the function
Description:
This runs a number of unit tests and presents the results as a numbered list. If a test fails, the invalid unit, failed test and test results will be stated in the protocol.
Use the argument 'target' to limit this to a certain test scenario.
parameters taken:
  • int target (optional) number of test to take (default = all)
  • access: public
inherited from base classes

Inherited From Plugin

Documentation generated on Sat, 03 Jan 2009 22:22:40 +0100 by phpDocumentor 1.4.0

yana author: Thomas MeyerHomepage: www.yanaframework.net