You are here

function with_clock_mock in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-foundation/Tests/ClockMock.php \Symfony\Component\HttpFoundation\with_clock_mock()
  2. 8.0 vendor/symfony/console/Tests/ClockMock.php \Symfony\Component\Console\Helper\with_clock_mock()
Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/ClockMock.php \Symfony\Component\HttpFoundation\with_clock_mock()
4 calls to with_clock_mock()
CookieTest::setUp in vendor/symfony/http-foundation/Tests/CookieTest.php
CookieTest::tearDown in vendor/symfony/http-foundation/Tests/CookieTest.php
ResponseHeaderBagTest::setUp in vendor/symfony/http-foundation/Tests/ResponseHeaderBagTest.php
ResponseHeaderBagTest::tearDown in vendor/symfony/http-foundation/Tests/ResponseHeaderBagTest.php

File

vendor/symfony/http-foundation/Tests/ClockMock.php, line 21

Namespace

Symfony\Component\HttpFoundation

Code

function with_clock_mock($enable = null) {
  static $enabled;
  if (null === $enable) {
    return $enabled;
  }
  $enabled = $enable;
}