Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Cache Class Reference

Public Member Functions

 startTest (\PHPUnit\Framework\TestCase $test)
 
 endTest (\PHPUnit\Framework\TestCase $test)
 

Detailed Description

Implementation of the @magentoCache DocBlock annotation

Definition at line 14 of file Cache.php.

Member Function Documentation

◆ endTest()

endTest ( \PHPUnit\Framework\TestCase  $test)

Handler for 'endTest' event

Parameters
\PHPUnit\Framework\TestCase$test
Returns
void

Definition at line 48 of file Cache.php.

49  {
50  if ($this->origValues) {
51  $this->setValues($this->origValues, $test);
52  $this->origValues = [];
53  }
54  }

◆ startTest()

startTest ( \PHPUnit\Framework\TestCase  $test)

Handler for 'startTest' event

Parameters
\PHPUnit\Framework\TestCase$test
Returns
void

Definition at line 29 of file Cache.php.

30  {
31  $source = $test->getAnnotations();
32  if (isset($source['method']['magentoCache'])) {
33  $annotations = $source['method']['magentoCache'];
34  } elseif (isset($source['class']['magentoCache'])) {
35  $annotations = $source['class']['magentoCache'];
36  } else {
37  return;
38  }
39  $this->setValues($this->parseValues($annotations, $test), $test);
40  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
$source
Definition: source.php:23

The documentation for this class was generated from the following file: