Mink is an open source PHP browser/Controller simulation test tool. Mink can simulate the interaction between the Web app and the browser, testing the Web app for the correct behavior.
New Gouttedriver (New Goutteclient ()), ' goutte2 ' = new Session (New Gouttedriver (New Goutteclient ())), ' Custom ' = new Session (new Mycustomdriver ($STARTURL))); Set the default session name$mink->setdefaultsessionname (' Goutte2 '); Visit a page$mink->getsession ()->visit ($STARTURL); Call to GetSession () without argument would always return a default session if have one (Goutte2 here) $mink->getsessio N ()->getpage ()->findlink (' Downloads ')->click (); Echo $mink->getsession ()->getpage () GetContent (); Call to GetSession () with argument would return session by its name$mink->getsession (' Custom ')->getpage ()->fin DLink (' Downloads ')->click (), Echo $mink->getsession (' Custom ')->getpage ()->getcontent (); This are done to make possible mixing sessions$mink->getsession (' goutte1 ')->getpage ()->findlink (' Chat ')- >click (); $mink->getsession (' Goutte2 ')->getpage ()->findlink (' Chat ')->click ();
Project home:http://www.open-open.com/lib/view/home/1430832116976