public static function suite() { self::$data1 = array(array('qwerty', 'b1b3773a05c0ed0176787a4f1574ff0075f7521e', 'sha1'), array('wrong value', 'b1b3773a05c0ed0176787a4f1574ff0075f7521e', 'sha1')); self::$data2 = array(array('asdfgh', 'a152e841783914146e4bcd4f39100686', 'md5'), array('wrong value', 'a152e841783914146e4bcd4f39100686', 'md5')); self::$results = array(array(0, 0, ezcAuthenticationGroupFilter::MODE_AND, true), array(0, 1, ezcAuthenticationGroupFilter::MODE_AND, false), array(0, 0, ezcAuthenticationGroupFilter::MODE_OR, true), array(0, 1, ezcAuthenticationGroupFilter::MODE_OR, true), array(1, 0, ezcAuthenticationGroupFilter::MODE_AND, false), array(1, 1, ezcAuthenticationGroupFilter::MODE_AND, false), array(1, 0, ezcAuthenticationGroupFilter::MODE_OR, true), array(1, 1, ezcAuthenticationGroupFilter::MODE_OR, false)); return new PHPUnit_Framework_TestSuite(__CLASS__); }
public function __construct() { parent::__construct(); $this->setName("Authentication"); $this->addTest(ezcAuthenticationGeneralTest::suite()); $this->addTest(ezcAuthenticationSessionTest::suite()); $this->addTest(ezcAuthenticationGroupTest::suite()); $this->addTest(ezcAuthenticationGroupMultipleTest::suite()); $this->addTest(ezcAuthenticationHtpasswdTest::suite()); $this->addTest(ezcAuthenticationLdapTest::suite()); $this->addTest(ezcAuthenticationOpenidTest::suite()); $this->addTest(ezcAuthenticationOpenidFileStoreTest::suite()); $this->addTest(ezcAuthenticationTokenTest::suite()); $this->addTest(ezcAuthenticationTypekeyTest::suite()); $this->addTest(ezcAuthenticationBignumTest::suite()); $this->addTest(ezcAuthenticationUrlTest::suite()); }