You are here

protected function ViewsLazyLoadTest::assertNotContains in Views Lazy Load 8

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

Asserts a string does not 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 not found otherwise FALSE.

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

File

./views_lazy_load.test, line 185
Contains ViewsLazyLoadTest

Class

ViewsLazyLoadTest
Test the basic lazy loading of views.

Code

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