-- Ian Young <[email protected]> wrote
(on Wednesday, 04 March 2009, 04:24 PM -0600):
> My quick and easy solution was to edit the problem test files to use  
> long tags :D I'm just wondering if I should file this as a bug against  
> Zend. Sounds like the answer might be yes?

No. Pass an option to phpunit when running the tests:
    
    phpunit -d "short_open_tag = 1" AllTests

The '-d' switch gets passed to the PHP interpreter, and can be used to
set INI values.

We are rethinking our recommendation for short tags at this point simply
due to differences in initial PHP configuration settings between
systems, and will likely make such changes as you suggest in the future.
In the meantime, passing the setting explicitly works.


> keith Pope wrote:
>> This may just be a problem with the tests not the actual framework,
>> you need to enable the stream handler, therefore maybe the tests don't
>> enable it, they may have been created before the stream handler.
>>
>> Quick and easy solution would be to enable short tags in the
>> TestConfiguration or TestHelper :)
>>
>> 2009/3/3 Ian Young <[email protected]>:
>>> Hi all,
>>>
>>> I'm quite new to Zend, so please excuse me if I'm missing something
>>> obvious here. We're setting up ZF at my company and decided to get all
>>> the included Zend unit tests running.  Some of the unit tests use files
>>> with PHP short tags, which we discovered because our server has short
>>> tags turned off and the tests cases are failing with messages like:
>>>
>>>  1)
>>> testCorrectViewHelperPathShouldBePropagatedWhenSubControllerInvoked(Zend_Controller_Action_Helper_ViewRendererTest)
>>>  Received <?= $this->fooUseHelper() ?>
>>>  Failed asserting that <text> contains "fooUseHelper invoked".
>>>
>>> There are two tickets [1][2] in the tracker that suggest this should be
>>> handled by a stream processor when short tags are disabled, but it
>>> doesn't seem to be happening within the test suite.
>>>
>>> Is this a bug, or do we have something set up wrong?
>>>
>>> Thanks,
>>> Ian
>>>
>>>
>>> [1] http://framework.zend.com/issues/browse/ZF-3686
>>> [2] http://framework.zend.com/issues/browse/ZF-2833
>>>
>>>
>>
>>
>>
>

-- 
Matthew Weier O'Phinney
Software Architect       | [email protected]
Zend Framework           | http://framework.zend.com/

Reply via email to