function testFindByUsername_InvalidThrows() { try { $result = Phlickr_User::findByUsername($this->api, 'this had better not be a real username'); } catch (Phlickr_MethodFailureException $e) { return; } $this->fail("An exception should have been thrown."); }