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


PHP SimpleTestOptions::ignore方法代码示例

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


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

示例1: nested_db_tree_test

***********************************************************************************
*
* $Id$
*
***********************************************************************************/
require_once LIMB_DIR . 'core/tree/limb_tree.class.php';
class nested_db_tree_test extends limb_tree
{
    var $_node_table = 'test_nested_tree1';
    var $_lock_ttl = 5;
    function nested_db_tree_test()
    {
        parent::nested_db_tree();
    }
}
SimpleTestOptions::ignore('test_nested_tree');
class test_nested_tree extends UnitTestCase
{
    var $db = null;
    function test_nested_tree()
    {
        parent::UnitTestCase();
        $this->db = db_factory::instance();
    }
    function setUp()
    {
        debug_mock::init($this);
        $this->_tree = new nested_db_tree_test();
    }
    function tearDown()
    {
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:nested_tree.test.php

示例2: do_filter

*
* $Id$
*
***********************************************************************************/
require_once LIMB_DIR . '/core/lib/util/dataspace.class.php';
class NullClass
{
}
class Filter
{
    function do_filter()
    {
    }
}
Mock::generate('Filter', 'MockFilter');
SimpleTestOptions::ignore('shared_data_space_test_case');
class shared_data_space_test_case extends UnitTestCase
{
    var $dataspace;
    var $filter;
    function shared_data_space_test_case($name = 'dataspace_test_case')
    {
        $this->UnitTestCase($name);
    }
    function setUp()
    {
        $this->dataspace = new dataspace();
    }
    function tearDown()
    {
        unset($this->dataspace);
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:test_dataspace.php

示例3: define

<?php

// $Id$
if (!defined("SIMPLE_TEST")) {
    define("SIMPLE_TEST", "../");
}
require_once SIMPLE_TEST . 'xml.php';
Mock::generate('SimpleRunner');
if (!function_exists('xml_parser_create')) {
    SimpleTestOptions::ignore('TestOfXmlStructureParsing');
    SimpleTestOptions::ignore('TestOfXmlResultsParsing');
}
class TestOfNestingTags extends UnitTestCase
{
    function TestOfNestingTags()
    {
        $this->UnitTestCase();
    }
    function testGroupSize()
    {
        $nesting = new NestingGroupTag(array('SIZE' => 2));
        $this->assertEqual($nesting->getSize(), 2);
    }
}
class TestOfXmlStructureParsing extends UnitTestCase
{
    function TestOfXmlStructureParsing()
    {
        $this->UnitTestCase();
    }
    function testValidXml()
开发者ID:sebs,项目名称:simpletest,代码行数:31,代码来源:xml_test.php

示例4: mock_root_object

***********************************************************************************/
require_once LIMB_DIR . 'core/lib/db/db_factory.class.php';
require_once LIMB_DIR . 'core/model/site_objects/site_object.class.php';
require_once LIMB_DIR . 'core/model/site_object_factory.class.php';
class mock_root_object extends site_object
{
    function mock_root_object()
    {
        parent::site_object();
    }
    function _define_class_properties()
    {
        return array('can_be_parent' => 1);
    }
}
SimpleTestOptions::ignore('test_site_object_template');
class test_site_object_template extends UnitTestCase
{
    var $db = null;
    var $object = null;
    var $parent_node_id = '';
    var $sub_node_id = '';
    function test_site_object_template()
    {
        $this->db =& db_factory::instance();
        parent::UnitTestCase();
    }
    function &_create_site_object()
    {
        return null;
    }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:__site_object_template.test.php

示例5: ignore

 /**
  *    @deprecated
  */
 function ignore($class = false)
 {
     SimpleTestOptions::ignore($class);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:simple_test.php

示例6: dirname

<?php
/**********************************************************************************
* Copyright 2004 BIT, Ltd. http://limb-project.com, mailto: support@limb-project.com
*
* Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
***********************************************************************************
*
* $Id$
*
***********************************************************************************/
define('TEST_PACKAGES_RESOLVER_DIR', dirname(__FILE__) . '/packages/');

SimpleTestOptions :: ignore('BasePackageFileResolverTest');

class BasePackageFileResolverTest extends LimbTestCase
{
  var $resolver;

  function & _defineResolver()
  {
    die('abstract method: define file resolver!');
  }

  function setUp()
  {
    Limb :: toolkit()->flushINICache();
    PackagesInfo :: instance()->reset();

    DebugMock :: init($this);

    $this->resolver =& $this->_defineResolver();
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:BasePackageFileResolverTest.class.php

示例7: _define_class_properties

        parent::content_object();
    }
    function _define_class_properties()
    {
        $props = $this->content_object->get_class_properties();
        if (!isset($props['db_table_name'])) {
            $props['db_table_name'] = get_class($this->content_object);
        }
        return $props;
    }
    function get_db_table()
    {
        return $this->_get_db_table();
    }
}
SimpleTestOptions::ignore('test_content_object_template');
class test_content_object_template extends test_site_object_template
{
    function test_content_object_template()
    {
        parent::test_site_object_template();
    }
    function _clean_up()
    {
        parent::_clean_up();
        $this->db->sql_delete('sys_object_version');
        $this->_clean_content_db_table_records();
    }
    function _clean_content_db_table_records()
    {
        $content_object_adapter = new content_object_template_test_adapter($this->object);
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:_content_object_template.test.php

示例8: array

<?php

/**********************************************************************************
* Copyright 2004 BIT, Ltd. http://www.0x00.ru, mailto: bit@0x00.ru
*
* Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
***********************************************************************************
*
* $Id$
*
***********************************************************************************/
require_once LIMB_DIR . 'core/lib/validators/validator.class.php';
require_once LIMB_DIR . 'core/lib/util/dataspace.class.php';
Mock::generate('error_list');
Mock::generatePartial('validator', 'validator_test_version', array('_get_error_list'));
SimpleTestOptions::ignore('test_rule');
class test_rule extends UnitTestCase
{
    var $validator = null;
    var $error_list = null;
    function setUp()
    {
        $this->error_list =& new Mockerror_list($this);
        $this->validator =& new validator_test_version($this);
        $this->validator->setReturnReference('_get_error_list', $this->error_list);
    }
    function tearDown()
    {
        $this->error_list->tally();
        $this->validator->tally();
        unset($this->validator);
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:__rule.test.php

示例9: require_once

<?php
/**********************************************************************************
* Copyright 2004 BIT, Ltd. http://www.0x00.ru, mailto: bit@0x00.ru
*
* Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
***********************************************************************************
*
* $Id$
*
***********************************************************************************/
require_once(LIMB_DIR . '/core/lib/db/db_factory.class.php');

SimpleTestOptions::ignore('db_test');

//ugly!!! db_test class should be removed
class db_test extends LimbTestCase
{
  var $db = null;

  var $dump_file = '';

  var $tables_list = array();
  var $table_records = array();

  var $sql_array = array();

  function db_test()
  {
    $this->db =& db_factory :: instance();

    parent :: LimbTestCase();
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:db_test.class.php

示例10: define

<?php

/**********************************************************************************
* Copyright 2004 BIT, Ltd. http://www.0x00.ru, mailto: bit@0x00.ru
*
* Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
***********************************************************************************
*
* $Id$
*
***********************************************************************************/
if (!defined('PHP_IMAGE_DIR_C')) {
    define('PHP_IMAGE_DIR_C', LIMB_DIR . 'core/lib/image/');
}
SimpleTestOptions::ignore('test_image_library');
class test_image_library extends UnitTestCase
{
    var $library = null;
    var $input_file = '';
    var $output_file = '';
    function test_image_library()
    {
        parent::UnitTestCase();
    }
    function setUp()
    {
        $this->input_file = LIMB_DIR . '/tests/cases/image/images/1.jpg';
        $this->output_file = LIMB_DIR . '/tests/cases/image/images/2.jpg';
        $input_type = 'jpeg';
        $output_type = 'jpeg';
        $this->library->set_input_file($this->input_file, $input_type);
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:_image_library.test.php

示例11: MockListener

    {
        $this->listener =& new MockListener($this);
        $this->parser =& new XML_HTMLSax();
        $this->parser->set_object($this->listener);
        $this->parser->set_element_handler('startHandler', 'endHandler');
        $this->parser->set_data_handler('dataHandler');
        $this->parser->set_escape_handler('escapeHandler');
        $this->parser->set_pi_handler('piHandler');
        $this->parser->set_jasp_handler('jaspHandler');
    }
    function tearDown()
    {
        $this->listener->tally();
    }
}
SimpleTestOptions::ignore('ParserTestCase');
class TestOfContent extends ParserTestCase
{
    function TestOfContent()
    {
        $this->ParserTestCase();
    }
    function testSimple()
    {
        $this->listener->expectOnce('dataHandler', array('*', 'stuff'));
        $this->parser->parse('stuff');
    }
    function testPreservingWhiteSpace()
    {
        $this->listener->expectOnce('dataHandler', array('*', " stuff\t\r\n "));
        $this->parser->parse(" stuff\t\r\n ");
开发者ID:GeekyNinja,项目名称:LifesavingCAD,代码行数:31,代码来源:xml_htmlsax_test.php

示例12: assertNormalPage

<?php

/**
* @package WACT_TESTS
* @version $Id: web.inc.php,v 1.6 2005/08/20 09:46:06 pachanga Exp $
*/
SimpleTestOptions::ignore('DWWebTestCase');
class DWWebTestCase extends WebTestCase
{
    function assertNormalPage()
    {
        $this->assertResponse(array(200));
        $this->assertNoUnwantedPattern('/Warning:/i');
        $this->assertNoUnwantedPattern('/Error:/i');
        $this->assertNoUnwantedPattern('/Fatal error/i');
    }
    function assertWantedLiteral($str)
    {
        $this->assertWantedPattern('/' . preg_quote($str, '/') . '/');
    }
    function assertNoUnWantedLiteral($str)
    {
        $this->assertNoUnWantedPattern('/' . preg_quote($str, '/') . '/');
    }
    function &_fileToPattern($file)
    {
        $file_as_array = file($file);
        $pattern = '#^';
        foreach ($file_as_array as $line) {
            /* strip trailing newline */
            if ($line[strlen($line) - 1] == "\n") {
开发者ID:pyfun,项目名称:dokuwiki,代码行数:31,代码来源:web.inc.php

示例13: StdClass

        $c = new StdClass();
        $l = new $this->collection_class_name();
        $l->add($c);
        $l->add($b);
        $l->add($a);
        $it = $l->iterator();
        $element = $it->current();
        $this->assertReference($element, $c);
        $it->next();
        $element = $it->current();
        $this->assertReference($element, $b);
        $it->next();
        $element = $it->current();
        $this->assertReference($element, $a);
    }
    function testEqualsDifferentOrder()
    {
        $a = new StdClass();
        $b = new StdClass();
        $l1 = new $this->collection_class_name();
        $l1->add($a);
        $l1->add($b);
        $l2 = new $this->collection_class_name();
        $l2->add($b);
        $l2->add($a);
        $this->assertFalse($l1->equals($l2));
    }
}
//We just tells SimpleTest to always ignore this testcase
SimpleTestOptions::ignore('LinkedListTestCase');
开发者ID:pombredanne,项目名称:tuleap,代码行数:30,代码来源:LinkedListTestCase.class.php

示例14: define

<?php

if (!defined('DOKU_BASE')) {
    define('DOKU_BASE', './');
}
require_once 'parser.inc.php';
require_once DOKU_INC . 'inc/parser/xhtml.php';
require_once DOKU_INC . 'inc/geshi.php';
if (!extension_loaded('runkit') && !@dl('runkit.dll') && !@dl('runkit.so')) {
    SimpleTestOptions::ignore('xhtml_htmlphp_test');
    trigger_error('Skipping xhtml_htmlphp_test - http://www.php.net/runkit required');
}
function xhtml_htmlphp_test_io_makefiledir()
{
    return;
}
function xhtml_htmlphp_test_io_savefile()
{
    return true;
}
class Doku_Renderer_tester extends Doku_Renderer_xhtml
{
}
/*
 * test case for parser/xhtml.php _headertolink method
 * definition:   function _headertolink($title,$create)
 */
class xhtml_htmlphp_test extends TestOfDoku_Parser
{
    var $purge;
    var $cachedir;
开发者ID:pyfun,项目名称:dokuwiki,代码行数:31,代码来源:xhtml_htmlphp.test.php

示例15: tearDown

<?php

/**********************************************************************************
* Copyright 2004 BIT, Ltd. http://www.0x00.ru, mailto: bit@0x00.ru
*
* Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
***********************************************************************************
*
* $Id$
*
***********************************************************************************/
require_once LIMB_DIR . 'core/tree/tree.class.php';
require_once LIMB_DIR . 'core/lib/db/db_factory.class.php';
require_once LIMB_DIR . 'core/fetcher.class.php';
require_once LIMB_DIR . 'tests/cases/db_test.class.php';
SimpleTestOptions::ignore('limb_test');
class limb_test extends db_test
{
    function limb_test()
    {
        parent::db_test();
    }
    function tearDown()
    {
        parent::tearDown();
        $user =& user::instance();
        $user->logout();
    }
    function _login_user($id, $groups)
    {
        $user =& user::instance();
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:limb_test.class.php


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