当前位置: 首页>>代码示例>>PHP>>正文


PHP SimpleExpectation::__construct方法代码示例

本文整理汇总了PHP中SimpleExpectation::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleExpectation::__construct方法的具体用法?PHP SimpleExpectation::__construct怎么用?PHP SimpleExpectation::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SimpleExpectation的用法示例。


在下文中一共展示了SimpleExpectation::__construct方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Sets the dom tree and the css selector to compare against
  *
  * @param mixed $dom          Dom tree to search into.
  * @param mixed $selector     Css selector to match element.
  * @param string $message     Customised message on failure.
  */
 public function __construct($dom, $selector, $message = '%s')
 {
     parent::__construct($message);
     $this->dom = $dom;
     $this->selector = $selector;
     $css_selector = new CssSelector($this->dom);
     $this->value = $css_selector->getTexts($this->selector);
 }
开发者ID:simpletest,项目名称:simpletest,代码行数:15,代码来源:dom_tester.php

示例2:

 /**
  *    Sets the value to compare against.
  *    @param string $substring  Text to search for.
  *    @param string $message    Customised message on failure.
  *    @access public
  */
 function __construct($substring, $message = '%s')
 {
     parent::__construct($message);
     $this->_substring = $substring;
 }
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:11,代码来源:web_tester.php

示例3: __construct

 public function __construct($repository_id)
 {
     parent::__construct();
     $this->repository_id = $repository_id;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:5,代码来源:GitRepositoryManagerTest.php

示例4:

 /**
  *    Sets up the conditions to test against.
  *    If the expected value is a string, then
  *    it will act as a test of the class name.
  *    An exception as the comparison will
  *    trigger an identical match. Writing this
  *    down now makes it look doubly dumb. I hope
  *    come up with a better scheme later.
  *    @param mixed $expected   A class name or an actual
  *                             exception to compare with.
  *    @param string $message   Message to display.
  */
 function __construct($expected, $message = '%s')
 {
     $this->expected = $expected;
     parent::__construct($message);
 }
开发者ID:clickdimension,项目名称:tinybutstrong,代码行数:17,代码来源:exceptions.php

示例5:

 /**
  *    Stashes the method and expected count for later
  *    reporting.
  *    @param string $method    Name of method to confirm against.
  *    @param integer $count    Minimum number of calls.
  *    @param string $message   Custom error message.
  */
 function __construct($method, $count, $message = '%s')
 {
     $this->method = $method;
     $this->count = $count;
     parent::__construct($message);
 }
开发者ID:Boris-de,项目名称:videodb,代码行数:13,代码来源:mock_objects.php

示例6:

 /**
  *    Sets the value to compare against.
  *    @param string $method     Method to check.
  *    @param string $message    Customised message on failure.
  *    @return void
  */
 function __construct($method, $message = '%s')
 {
     parent::__construct($message);
     $this->method =& $method;
 }
开发者ID:hoodoogurus,项目名称:dotprojecteap,代码行数:11,代码来源:expectation.php

示例7: __construct

 public function __construct(array $should_not_exist)
 {
     parent::__construct();
     $this->should_not_exist = $should_not_exist;
 }
开发者ID:amanikamail,项目名称:tuleap,代码行数:5,代码来源:Tracker_FormElementFactoryTest.php

示例8: __construct

 public function __construct($expected_cn)
 {
     parent::__construct();
     $this->expected = $expected_cn;
 }
开发者ID:pdaniel-frk,项目名称:tuleap,代码行数:5,代码来源:bootstrap.php

示例9: __construct

 /**
  * Creates a new IdenticalBinaryExpectation comparing with $left.
  * @param string $left    hand side of comparison
  * @param string $message for expecation
  */
 public function __construct($left, $message = '%s')
 {
     parent::__construct($message);
     $this->_left = $left;
 }
开发者ID:mahersafadi,项目名称:joindin-api,代码行数:10,代码来源:IdenticalBinaryExpectation.php

示例10:

 function __construct($expected, $message = '%s')
 {
     parent::__construct($message);
     if (!is_object($expected)) {
         trigger_error('Attempt to create a CheckSpecifiedFieldsExpectation ' . 'with an expected value that is not an object.');
     }
     $this->expect = $expected;
 }
开发者ID:saurabh947,项目名称:MoodleLearning,代码行数:8,代码来源:simpletestlib.php

示例11: __construct

 public function __construct($expected_field_data)
 {
     parent::__construct();
     $this->expected_field_data = $expected_field_data;
 }
开发者ID:blestab,项目名称:tuleap,代码行数:5,代码来源:XMLImportTest.php

示例12:

 function __construct(array $expected)
 {
     parent::__construct();
     $this->expected = $expected;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:5,代码来源:SearchClientFacadeTest.php


注:本文中的SimpleExpectation::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。