Comments (1)
Thank you for reporting and your kind words. I'm slowly updating SimpleTest to support newer PHP language features and versions. Mainly by applying lots and lots of small refactoring steps,
cleaning things here and there and fixing things along the way.
Seems it's a SimpleTest issue. The function deduceMimeType()
in class SimpleAttachment
returns application/octet-stream
if the content is not Ascii. We need to improve this behavior and support more mime types, either by using mime_content_type()
, like you suggested - or by using finfo_open() + finfo_file()
.
Hmm, when looking at the WebTester
and getMimeType()
the value comes from a header.
The related test in Page Test.
Before providing test case for the issue I would rather ask first. Maybe you will just know the answer.
If you have a test-case handy, please attach it.
That saves a lot of time and helps me in tracking the issue down.
Thank you for your help!
from simpletest.
Related Issues (20)
- no referer is given HOT 2
- mock_object is trying to run tell() on non existing object HOT 3
- Unable to click a button. HOT 3
- How can I add Header Referer
- [support] How to structure integration tests HOT 4
- dumper->clipString() is multibyte safe? HOT 1
- i would like commit some code HOT 6
- Mocking interfaces with class definitions in arguments is broken HOT 1
- New Release / Project Status HOT 8
- Documentation translation HOT 5
- Please support cookie/session HOT 1
- Unable to click submit when there is onclick tag HOT 2
- how to click href when there is nowrap
- PHP 7.2: Spurious test errors due to legacy constructors HOT 1
- Syntax error in mocked methods in PHP 7.1+ HOT 3
- TestSuite ends up creating instances of the clases in the hiearchy of a test
- Documentation link is broken or resource unavilable HOT 3
- Failed unit_tests.php HOT 3
- Add support for date and time input fields HOT 1
- Still alive? HOT 3
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 simpletest.