Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
fixed exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
everzet committed May 18, 2011
1 parent d726c75 commit e3efa9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Behat/Mink/Mink.php
Expand Up @@ -78,7 +78,7 @@ public function setDefaultSessionName($name)
$name = strtolower($name);

if (!isset($this->sessions[$name])) {
throw new \InvalidArgumentException(sprintf('session "%s" is not registered.', $name));
throw new \InvalidArgumentException(sprintf('Session "%s" is not registered.', $name));
}

$this->defaultSessionName = $name;
Expand Down Expand Up @@ -106,11 +106,11 @@ public function getSession($name = null)
$name = strtolower($name) ?: $this->defaultSessionName;

if (null === $name) {
throw new \InvalidArgumentException('specify session name to get');
throw new \InvalidArgumentException('Specify session name to get');
}

if (!isset($this->sessions[$name])) {
throw new \InvalidArgumentException(sprintf('session "%s" is not registered.', $name));
throw new \InvalidArgumentException(sprintf('Session "%s" is not registered.', $name));
}

$session = $this->sessions[$name];
Expand Down

0 comments on commit e3efa9a

Please sign in to comment.