Comments (2)
We were able to fix this problem with another library called "Mockery"
$settingsProviderMock = Mockery::mock(
'overload:' . \anyNameSpace\anyNamespace\Settings\SettingsProvider::class
)->makePartial();
$settingsProviderMock->shouldReceive('fileStorage')->once()->andReturn(2);
from testing-framework.
Hi Robert,
I'm not quite sure what the actual problem is/was but did you have a look at mocks and/or prophecies in PHPUnit (https://phpunit.de/manual/current/en/test-doubles.html).
from testing-framework.
Related Issues (20)
- Add support for PHP 7.3 HOT 1
- Compatibility with helhum/typo3-secure-web package for frontend requests
- Is there an option to test real http requests? HOT 1
- Bootstraping TYPO3 does not work from V10 up
- Add support for PHPUnit 8 HOT 5
- ViewHelper Test fails with `count(): Parameter must be an array or an object that implements Countable` with TYPO3 8.7.28 and PHP 7.2 HOT 2
- Do not spill databases HOT 1
- Linked fixtures are deleted before last test of a class HOT 4
- Support sqlite HOT 10
- Empty testcase - Database error HOT 7
- First functional test database connection fails with Doctrine DBAL 2.13 HOT 5
- [Question] Plans for adding support for PostgreSQL? HOT 7
- [CI] Update to GitHub Action
- Add support for TYPO3 v11 HOT 2
- Class 'Text_Template' not found
- Problem with SQLite on PHP 8.0 HOT 1
- PostgreSQL and "auto_increment" problems HOT 1
- Records of ext_tables_static+adt.sql were inserted just once HOT 3
- ClassAliasMap::$classAliasLoader is not defined in UnitTest Bootstrap HOT 3
- Clarify further support in README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testing-framework.