Version 1
[yaffs-website] / vendor / behat / mink-browserkit-driver / tests / web-fixtures / cookie_page3.php
diff --git a/vendor/behat/mink-browserkit-driver/tests/web-fixtures/cookie_page3.php b/vendor/behat/mink-browserkit-driver/tests/web-fixtures/cookie_page3.php
new file mode 100644 (file)
index 0000000..f24d587
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+$hasCookie = $app['request']->cookies->has('foo');
+$resp = new Symfony\Component\HttpFoundation\Response();
+$cook = new Symfony\Component\HttpFoundation\Cookie('foo', 'bar');
+$resp->headers->setCookie($cook);
+
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
+<head>
+    <title>HttpOnly Cookie Test</title>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
+    <script>
+    </script>
+</head>
+<body>
+    <div id="cookie-status">Has Cookie: <?php echo json_encode($hasCookie) ?></div>
+</body>
+</html>