{"id":95670,"library":"php-mock-php-mock-prophecy","title":"PHP-Mock Prophecy","description":"Mock built-in PHP functions (e.g. time()) with Prophecy. This package relies on PHP's namespace fallback policy. No further extension is needed.","status":"active","version":"0.1.4","language":"php","source_language":null,"source_url":"https://github.com/php-mock/php-mock-prophecy","tags":["testing","mocking","prophecy","php-functions"],"install":[{"cmd":"composer require php-mock/php-mock-prophecy","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"MockProphet","correct":"use phpmock\\prophyp\\MockProphet;"}],"quickstart":{"code":"use phpmock\\prophyp\\MockProphet;\n\n$prophet = new MockProphet();\n$prophet->prophesize('time')->willReturn(1234567890);\necho time(); // 1234567890","lang":"php","description":"Mock PHP built-in functions using Prophecy"},"warnings":[{"fix":"Ensure your code uses namespaces and PHP version >=7.0","message":"Requires PHP 7.0+ and namespace fallback policy","severity":"breaking","affected_versions":"<0.2.0"}],"env_vars":null,"search_vec":"'built':7 'built-in':6 'e.g':11 'extens':26 'fallback':22 'function':10,34 'mock':3,5,30 'namespac':21 'need':28 'packag':16 'php':2,9,19,33 'php-function':32 'php-mock':1 'polici':23 'propheci':4,14,31 'reli':17 'test':29 'time':12","created_at":"2026-06-19T10:38:44.821770+00:00","updated_at":"2026-06-19T10:38:44.821770+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/php-mock/php-mock-prophecy","github":"https://github.com/php-mock/php-mock-prophecy","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","utility"],"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}}