1<?php
2
3namespace Facebook\WebDriver\Exception;
4
5class UnexpectedTagNameException extends WebDriverException
6{
7    /**
8     * @param string $expected_tag_name
9     * @param string $actual_tag_name
10     */
11    public function __construct(
12        $expected_tag_name,
13        $actual_tag_name
14    ) {
15        parent::__construct(
16            sprintf(
17                'Element should have been "%s" but was "%s"',
18                $expected_tag_name,
19                $actual_tag_name
20            )
21        );
22    }
23}
24