function test_bad_args() { $query = array('openid.signed' => 'foo', 'closid.foo' => 'something'); $consumer = new _BadArgCheckingConsumer($this->store); $message = Auth_OpenID_Message::fromPostArgs($query); $this->assertFalse($consumer->_checkAuth($message, 'does://not.matter')); }
function test_bad_args() { $query = array('openid.signed' => 'foo', 'closid.foo' => 'something'); $consumer = new _BadArgCheckingConsumer($this->store); $consumer->_checkAuth($query, 'does://not.matter'); $this->assertEquals(__getError(), E_ASSERTION_ERROR); }