{"id":91588,"library":"codeception-stub","title":"Codeception Stub","description":"Flexible Stub wrapper for PHPUnit's Mock Builder","status":"active","version":"4.3.0","language":"php","source_language":null,"source_url":"https://github.com/Codeception/Stub","tags":["testing","stub","mock","phpunit","codeception"],"install":[{"cmd":"composer require codeception/stub","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Stub","correct":"use Codeception\\Stub;"}],"quickstart":{"code":"use Codeception\\Stub;\n\n$user = Stub::make('User', ['getName' => 'John']);\necho $user->getName(); // John","lang":"php","description":"Create a stub object with predefined methods"},"warnings":[{"fix":"Use version 4.x with PHPUnit 9.x; check composer.json for constraints","message":"Depends on PHPUnit; version compatibility matters","severity":"breaking","affected_versions":">=4.0"}],"env_vars":null,"search_vec":"'builder':10 'codecept':1,15 'flexibl':3 'mock':9,13 'phpunit':7,14 'stub':2,4,12 'test':11 'wrapper':5","created_at":"2026-06-19T09:20:02.623405+00:00","updated_at":"2026-06-19T09:20:02.623405+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Codeception/Stub","github":"https://github.com/Codeception/Stub","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}