/** * Assert that a non-string value passed to setPassword results in an exception * * @dataProvider BadCredentialData */ public function testBadPassword($password) { $this->setExpectedException('InvalidArgumentException', sprintf('Argument "%s" passed to WebServices\\Soap\\SalesNet\\Authentication::setPassword must be a string', $password)); $this->auth->setPassword($password); }