hi,
this is part of a test for my controller:

        $client->request('GET', '/myroute/mytemplate?user=auser');
        $crawler = $client->getCrawler();
       
        $this->assertTrue($crawler->filter('html:contains("blah")')->count() 
> 0);
        $this->assertRegExp('/blah/', $client->getResponse()->getContent());
        $this->assertEquals(200, $client->getResponse()->getStatusCode());

i run the test the way the symfony2 instructions say to.
what's weird is i can get the first two assertion to work (checking content 
for "blah") depending on what i put for "blah"...  that is, it will return 
true for certain "blah"'s that it shouldnt and not return true when it 
should.  it seems like instead of checking the content, it is checking the 
query URL (based on different content i have checked for).  has anyone else 
experienced this?

secondly, i can check the controller's response status code manually in my 
controller and verify it is in fact 200.  however, when i run the code 
above, the status code it finds is 404...

thoughts?

thanks. 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to