public function amEditingPostWithId($id) { if (!is_numeric($id) && intval($id) == $id) { throw new \InvalidArgumentException('ID must be an int value'); } $this->amOnAdminPage('/post.php?post=' . $id . '&action=edit'); }