You are here

public function VarnishCacheInvalidationCase::assertRegexpPattern in Varnish 7

1 call to VarnishCacheInvalidationCase::assertRegexpPattern()
VarnishCacheInvalidationCase::testVarnishCacheExpiration in ./varnish.test
Test that makes sure that the varnish cache get's invalidated at the appropriate times.

File

./varnish.test, line 99
Tests the basic functionality of Varnish.

Class

VarnishCacheInvalidationCase
Tests Cache Expiration.

Code

public function assertRegexpPattern($content, $pattern, $message = '') {
  $this
    ->assertTrue(preg_match($pattern, $content), $message);
}