blob: 5cd0ff3240e8ca455c7e95da0d66180e1ad9c5c1 [file] [log] [blame]
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright 2015 Oracle and/or its affiliates. All rights reserved.
#
# Oracle and Java are registered trademarks of Oracle and/or its affiliates.
# Other names may be trademarks of their respective owners.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common
# Development and Distribution License("CDDL") (collectively, the
# "License"). You may not use this file except in compliance with the
# License. You can obtain a copy of the License at
# http://www.netbeans.org/cddl-gplv2.html
# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
# specific language governing permissions and limitations under the
# License. When distributing the software, include this License Header
# Notice in each file and include the License file at
# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the GPL Version 2 section of the License file that
# accompanied this code. If applicable, add the following below the
# License Header, with the fields enclosed by brackets [] replaced by
# your own identifying information:
# "Portions Copyrighted [year] [name of copyright owner]"
#
# If you wish your version of this file to be governed by only the CDDL
# or only the GPL Version 2, indicate your decision by adding
# "[Contributor] elects to include this software in this distribution
# under the [CDDL or GPL Version 2] license." If you do not indicate a
# single choice of license, a recipient has the option to distribute
# your version of this file under either the CDDL, the GPL Version 2 or
# to extend the choice of license to its licensees as provided above.
# However, if you add GPL Version 2 code and therefore, elected the GPL
# Version 2 license, then the option applies only if the new code is
# made subject to such option by the copyright holder.
#
# Contributor(s):
#
# Portions Copyrighted 2015 Sun Microsystems, Inc.
CodeceptionAnnotationsProvider.name=Codeception
EnvTag.documentation=<p style="font-weight: bold; font-size: 1.2em">@env</p><p style="font-weight: bold; font-size: 1.1em">\u8bf4\u660e</p><p>\u5bf9\u4e8e\u4f7f\u7528\u201c\u6d4b\u8bd5\u548c Cest\u201d\u683c\u5f0f\u7684\u6d4b\u8bd5, \u6240\u9700\u73af\u5883\u53ef\u4ee5\u4f7f\u7528 <code>@env</code> \u6807\u6ce8\u6307\u5b9a</p><p style="font-weight: bold; font-size: 1.1em">\u793a\u4f8b</p><pre><code>\n/**\n * \u6b64\u6d4b\u8bd5\u4ec5\u5728 'firefox' \u548c 'phantom' \u73af\u5883\u4e2d\u6267\u884c\n *\n * @env firefox\n * @env phantom\n */\npublic function webkitOnlyTest(AcceptanceTester $I)\n{\n // I do something\n}\n</code></pre>
DependsTag.documentation=<p style="font-weight: bold; font-size: 1.2em">@depends</p><p style="font-weight: bold; font-size: 1.1em">\u8bf4\u660e</p><p>\u4f7f\u7528 <code>@depends</code> \u6807\u6ce8\u53ef\u4ee5\u6307\u5b9a\u5e94\u5728\u5f53\u524d\u6d4b\u8bd5\u4e4b\u524d\u901a\u8fc7\u7684\u6d4b\u8bd5\u3002\u5982\u679c\u6d4b\u8bd5\u5931\u8d25, \u5219\u5c06\u8df3\u8fc7\u5f53\u524d\u6d4b\u8bd5\u3002\u60a8\u5e94\u8be5\u4f20\u9012\u6240\u4f9d\u8d56\u7684\u6d4b\u8bd5\u7684\u65b9\u6cd5\u540d\u79f0\u3002</p><p style="font-weight: bold; font-size: 1.1em">\u793a\u4f8b</p><pre><code>\n<?php\nclass ModeratorCest {\n public function login(AcceptanceTester $I)\n {\n // logs moderator in\n }\n /**\n * @depends login\n */\n public function banUser(AcceptanceTester $I)\n {\n // bans user\n }\n}\n?>\n</code></pre>\n<p>\u63d0\u793a: <code>@depends</code> \u53ef\u4ee5\u4e0e <code>@before</code> \u7ed3\u5408\u4f7f\u7528\u3002</p>