Download the PHP package kodhe/test without Composer

On this page you can find all versions of the php package kodhe/test. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package test

Unit Test Library Refactoring Documentation

Architecture Overview

The refactored Unit Test library follows a modular architecture while maintaining full backward compatibility with CodeIgniter 3 API.

Folder Structure

Backward Compatibility Matrix

Legacy API New Implementation Status
$active property $active property ✅ PASS
$results property $results property ✅ PASS
$strict property $strict property ✅ PASS
run() UnitTest::run() ✅ PASS
report() UnitTest::report() ✅ PASS
result() UnitTest::result() ✅ PASS
set_test_items() UnitTest::set_test_items() ✅ PASS
use_strict() UnitTest::use_strict() ✅ PASS
active() UnitTest::active() ✅ PASS
set_template() UnitTest::set_template() ✅ PASS
reset() UnitTest::reset() ✅ PASS
is_true() helper Kodhe\Test\is_true() ✅ PASS
is_false() helper Kodhe\Test\is_false() ✅ PASS

Public API Preserved

Properties

Methods

Helper Functions

Type Checking Functions Supported

The following type functions are supported in the run() method:

Usage Examples

Legacy API (Fully Compatible)

Modern Internal API

Custom Assertion Example

PSR Standards Compliance

PSR-4 Autoloading

PSR-12 Coding Style

Key Improvements

1. Separation of Concerns

2. Extensibility

3. Testability

4. Maintainability

Performance Considerations

Security Notes

Migration Guide

From Original CI3 Unit Test

No migration needed! The refactored library maintains 100% API compatibility.

For New Code

You can optionally use the modern internal API for better control:

Known Limitations

  1. Language Dependency: Still requires kodhe()->lang for label translation
  2. Backtrace: Uses debug_backtrace() which has performance overhead
  3. HTML Output: Default reporter produces HTML (by design for CI3 compatibility)

Testing Strategy

PHPUnit Tests (To Be Added)

Test Coverage Areas

Definition of Done Checklist

Version History

License

MIT License - Same as original CodeIgniter Unit Test library


All versions of test with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kodhe/test contains the following files

Loading the files please wait ...