{"id":88269,"library":"codeception-aspect-mock","title":"AspectMock","description":"Experimental Mocking Framework powered by Aspects.","status":"active","version":"4.1.1","language":"php","source_language":null,"source_url":"https://github.com/Codeception/AspectMock","tags":["testing","mocking","aop","aspect"],"install":[{"cmd":"composer require codeception/aspect-mock","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Test","correct":"use AspectMock\\Test\\Test;"}],"quickstart":{"code":"use AspectMock\\Test\\Test;\n\n$userMock = Test::double('App\\User', ['getName' => 'John']);\necho $userMock->getName(); // John","lang":"php","description":"Create a mock for a class using AspectMock."},"warnings":[{"fix":"Ensure only one AOP framework is loaded; disable opcache.preload if used.","message":"Requires the AOP extension (e.g., Go! AOP) and may conflict with other AOP libraries.","severity":"gotcha","affected_versions":">=4.0.0"}],"env_vars":null,"search_vec":"'aop':10 'aspect':7,11 'aspectmock':1 'experiment':2 'framework':4 'mock':3,9 'power':5 'test':8","created_at":"2026-06-19T08:29:49.367929+00:00","updated_at":"2026-06-19T08:29:49.367929+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/AspectMock","github":"https://github.com/Codeception/AspectMock","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}}