Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
setcookie_mock.php
Go to the documentation of this file.
1 <?php
2 /***
3  * Copyright © Magento, Inc. All rights reserved.
4  * See COPYING.txt for license details.
5  */
6 
8 
9 use \Magento\Framework\Stdlib\Test\Unit\Cookie\PhpCookieManagerTest;
10 
23 function setcookie($name, $value, $expiry, $path, $domain, $secure, $httpOnly)
24 {
26 
27  if (isset($mockTranslateSetCookie) && $mockTranslateSetCookie === true) {
29  return PhpCookieManagerTest::assertCookie($name, $value, $expiry, $path, $domain, $secure, $httpOnly);
30  } else {
31  return call_user_func_array(__FUNCTION__, func_get_args());
32  }
33 }
$value
Definition: gender.phtml:16
if(!isset($_GET['name'])) $name
Definition: log.php:14