You are here

protected function ViewsLazyLoadTest::assertContains in Views Lazy Load 7

Same name and namespace in other branches
  1. 8 views_lazy_load.test \ViewsLazyLoadTest::assertContains()

Asserts a string does exist in the haystack.

Parameters

string $needle: The string to search for.

string $haystack: The string to search within.

string $message: The message to log.

Return value

bool TRUE if it was found otherwise FALSE.

1 call to ViewsLazyLoadTest::assertContains()
ViewsLazyLoadTest::testLazyLoading in ./views_lazy_load.test
Tests the basics of lazy loading.

File

./views_lazy_load.test, line 168
Contains ViewsLazyLoadTest

Class

ViewsLazyLoadTest
Test the basic lazy loading of views.

Code

protected function assertContains($needle, $haystack, $message = '') {
  return $this
    ->assertTrue(stripos($haystack, $needle) !== FALSE, $message);
}