Comments (5)
vfsstream will not work with getRealPath()
https://github.com/mikey179/vfsStream/wiki/Known-Issues
Or we want to change the implementation at
https://github.com/auraphp/Aura.View/blob/master/src/Aura/View/TemplateFinder.php#L198
to something like is_readable($file)
.
But that doesn't fix everything.
More troubles like creating mockobject for fetch()
.
To further proceed I need some help how to make this happen.
from aura.view.
We'll make this the very next priority, then. All the other packages seem OK now. :-)
from aura.view.
great!
from aura.view.
@pmjones we can get the file contents of vfsstream via
file_get_contents(vfsStream::url('root/tmp/foo/inner_view.php'))
or via
$this->root->getChild('tmp/foo/inner_view.php')->getContent()
May be we need to change the fetch method to
public function fetch($__name__)
{
$file = $this->find($__name__);
return file_get_contents($file);
}
or it seems a good idea to create a MockObject for the fetch method and return the content? I am not sure :( .
from aura.view.
Turned out that switching to "is_readable()" was the key, as you suggested @harikt . The change is made, the tests are converted to VfsStream, and life is good. :-)
from aura.view.
Related Issues (20)
- Aura View Helper not getting called :( HOT 3
- Form component
- HTML attribute escaping (and JS, CSS, URL) HOT 3
- My idea of Repeat Field HOT 1
- getTemplate needs in TwoStep
- Helpers methods chaining HOT 2
- Consistency accross Aura.Html and Aura.View HOT 1
- Issue then using numeric key for options HOT 2
- Possible bug with the aura closure view HOT 8
- Format Types HOT 1
- Solved: Static class and Template Closure problem HOT 1
- May be an init method HOT 3
- Could you include a demo project/big picture in these repos? HOT 5
- __construct() method, not __invoke() method, being called on helpers HOT 6
- DX : Bring TemplateFinder back to v2 HOT 3
- Update docs for set section
- Mustache integration ? HOT 1
- Release? HOT 1
- Typo on the github description HOT 1
- Indirect modification HOT 2
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 aura.view.