function ViewsHandlersTest::assertEqualValue

Check to see if two values are equal.

Parameters

string $first: The first value to check.

views_handler $handler:

string $message: The message to display along with the assertion.

string $group: The type of assertion - examples are "Browser", "PHP".

Return value

bool TRUE if the assertion succeeded, FALSE otherwise.

2 calls to ViewsHandlersTest::assertEqualValue()
ViewsHandlersTest::test_views_break_phrase in tests/views_handlers.test
Tests views_break_phrase function.
ViewsHandlersTest::test_views_break_phrase_string in tests/views_handlers.test
Tests views_break_phrase_string function.

File

tests/views_handlers.test, line 149

Class

ViewsHandlersTest
Tests abstract handlers of views.

Code

protected function assertEqualValue($first, $handler, $message = '', $group = 'Other') {
    return $this->assert($first == $handler->value, $message ? $message : t('First value is equal to second value'), $group);
}