PHP Package: codeception/stub
powerful PHP library for creating test doubles easily in Codeception
Package Description
Codeception Stub is a versatile PHP library that provides a convenient way to create test doubles such as stubs, spies, and mocks for testing purposes in Codeception. It offers a wide range of features and functionalities, making it an essential tool for writing effective and efficient unit tests. With Codeception Stub, developers can easily simulate the behavior of dependencies, control the responses of methods, and verify method calls, all with a simple and intuitive interface.
Download Latest Version: 4.1.4

Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/codeception/stub/4.1.4/autoload.php';
use Codeception\Stub\Stub;
use Codeception\Stub\Spy;
use Codeception\Stub\Mock;
$obj = new Codeception\Stub\Stub();
echo "✅ Example created successfully.";
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.