Comments (2)
This was added by @padraic in this commit 5230537 so I'm closing this one.
from mockery.
Not to kick a two-year-old-dead horse, but! :) I just spent 8 hours of my life trying to figure out why my unit tests were kicking out a:
ErrorException: preg_match(): Delimiter must not be alphanumeric or backslash
The final solution was to turn off xdebug's scream option.
So... is there a better way to handle the preg_match()
's in the Expectation
class without using the nasty @
error suppressor? Maybe just some simple strpos()
checks for the required regex delimiters or something? Sorry, I'm not familiar with the code enough to know if this is just an impossibility.
from mockery.
Related Issues (20)
- Type declarations and Generics
- mockery/mockery: 1.4.x-dev not found HOT 3
- Factory methods for `IsEqual` and `IsSame` matchers HOT 1
- support for PHPUnit constraints HOT 2
- Add "set property" method to mock object? HOT 1
- Disabled travis-ci and sensiolabs webhooks
- [New feature] Running code after mock method was called HOT 2
- InvalidCountException even though the mock method is called HOT 1
- [Feature request] Add array-like objects support to argument matchers
- PHP return type mismatch error when mocking method with static return type HOT 2
- Deprecations about drop support Metadata doc-comment in PHPUnit 12 HOT 2
- Latest release totally broken HOT 14
- PHPStan error with mock method in 1.6.8 HOT 1
- Invalid `Mockery::mock()`/`spy()` phpdoc (= phpstan errors) HOT 6
- Issues with partial construction trait methods on 1.6.10 - change in behaviour HOT 1
- Cannot use 'false' as class name as it is reserved HOT 2
- Typings for setConstantsMap does not allow array HOT 1
- Mocking final classes reports unresolvable type by PHPStan HOT 1
- Error when mocking anonymous classes HOT 2
- Received `*::__construct()` but no expectations were specified HOT 1
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 mockery.