HMLB\VW\SecretSoftware::underScrutiny PHP Method

underScrutiny() public method

Where the magic occurs.
public underScrutiny ( ) : boolean
return boolean
    public function underScrutiny()
    {
        foreach ($this->examinators as $gaze) {
            if (getenv($gaze)) {
                return true;
            }
        }
        return false;
    }

Usage Example

Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function endTest(PHPUnit_Framework_Test $test, $time)
 {
     if (!$test instanceof PHPUnit_Framework_TestCase) {
         return;
     }
     if ($this->secretSoftware->underScrutiny()) {
         $this->secretSoftware->force($test);
     }
 }