Okay, that's why... :-) -- Regads, Vladas Diržys
On Thu, Jan 7, 2010 at 14:13, Pádraic Brady <[email protected]> wrote: > There's a view option to enable the stream conversion ;). > > Pádraic Brady > > http://blog.astrumfutura.com > http://www.survivethedeepend.com > OpenID Europe Foundation Irish Representative<http://www.openideurope.eu/> > > > ------------------------------ > *From:* Vladas Diržys <[email protected]> > *To:* [email protected] > *Sent:* Thu, January 7, 2010 7:49:38 AM > *Subject:* Re: [fw-general] Rendering Response when Unit Testing > Controllers > > Iteresting only, why Zend_View_Stream doesn't converts short tags to long > tags?... > > -- > Regards, > Vladas Diržys > > > On Wed, Jan 6, 2010 at 21:32, bparise <[email protected]> wrote: > >> >> I feel like such a noob... >> Thanks! >> >> >> Vladas Diržys wrote: >> > >> > Maybe you have short_open_tag disabled? >> > >> > -- >> > Regards, >> > Vladas Diržys >> > >> > >> > On Wed, Jan 6, 2010 at 21:01, bparise <[email protected]> wrote: >> > >> >> >> >> I have controller testing with PHPUnit setup, but the response is just >> >> rendering the PHP code(not actually rendering the views). >> >> >> >> <?php >> >> class SiteControllerTest extends Zend_Test_PHPUnit_ControllerTestCase >> >> { >> >> //... >> >> public function testLoginForm() >> >> { >> >> $this->request->setMethod('POST')->setPost(array('username' => >> >> 'test', 'password' => 'test')); >> >> $this->dispatch('/site/login'); >> >> >> >> // Always results in an error >> >> $this->assertQuery('form#LoginForm'); >> >> >> >> // So, I checked the response body, and noticed none of is is >> >> being >> >> rendered, its just the PHP code. >> >> >> >> print_r($this->getResponse()->getBody()); >> >> /* >> >> <html> >> >> ... >> >> <?= $this->layout()->content; ?> >> >> </html> >> >> */ >> >> } >> >> } >> >> ?> >> >> >> >> Is there a way to get it to render so I can test the existence of the >> >> login >> >> form? >> >> -- >> >> View this message in context: >> >> >> http://n4.nabble.com/Rendering-Response-when-Unit-Testing-Controllers-tp1008280p1008280.html >> >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> >> > >> > >> >> -- >> View this message in context: >> http://n4.nabble.com/Rendering-Response-when-Unit-Testing-Controllers-tp1008280p1008297.html >> Sent from the Zend Framework mailing list archive at Nabble.com. >> > >
