0

i'm new to php unit and reading the examples from php unit docs. I try a test to get the index page of the target app. I get error pasted below, guessing it is because the app requires logins, ldap logins. I wonder how I can skip it or set up a username and password in advance.

Error: Failed asserting response code "200", actual status code is "302"

Axess
  • 101
  • 2
  • 10
  • possible duplicate of [Simple ZF2 Unit Tests for a controller using ZfcUser](http://stackoverflow.com/questions/14354456/simple-zf2-unit-tests-for-a-controller-using-zfcuser) – Marek Feb 12 '15 at 12:29
  • I need to set up password and username, which is different form another question Marek posted. – Axess Feb 12 '15 at 12:44

0 Answers0