PageRenderTime 494ms queryFilters 0ms Sphinxql 313ms GetByIds 153ms meta 0ms repositoryFilters 6ms languageFilters 0ms sourceFilters 1ms

90,577 results for 'php method_exists repo:Amit_Ashckenazi/unmatched-archives' (494 ms)

Source

Language

Repository

testgradeitem.php https://bitbucket.org/ceu/moodle_demo | PHP | 509 lines
1<?php // $Id: testgradeitem.php,v 1.6.2.3 2008/03/27 17:13:00 nicolasconnault Exp $
2
64        $grade_item = new grade_item();
65        $this->assertTrue(method_exists($grade_item, 'insert'));
66
83        $grade_item = new grade_item($this->grade_items[0]);
84        $this->assertTrue(method_exists($grade_item, 'delete'));
85
92        $grade_item = new grade_item($this->grade_items[0]);
93        $this->assertTrue(method_exists($grade_item, 'update'));
94
108        $grade_item = new grade_item($this->grade_items[2]);
109        $this->assertTrue(method_exists($grade_item, 'load_scale'));
110        $scale = $grade_item->load_scale();
223        $grade_item = new grade_item($this->grade_items[0]);
224        $this->assertTrue(method_exists($grade_item, 'set_parent'));
225
F3.php https://github.com/seyyah/f3kulmysql.git | PHP | 2,037 lines
1<?php
2
3/**
4	PHP Fat-Free Framework - Less Hype, More Meat.
5
5
6	Fat-Free is a powerful yet lightweight PHP 5.3+ Web development
7	framework designed to help build dynamic Web sites - fast. The
16	and closed-source licensing terms are available. For personal use, the
17	PHP Fat-Free Framework and other files included in the distribution
18	are subject to the terms of the GNU GPL v3. You may not use the
34	const
35		TEXT_AppName='PHP Fat-Free Framework',
36		TEXT_Version='1.3.22';
57		TEXT_MSet='Invalid multi-variable assignment',
58		TEXT_PHPExt='PHP extension {@CONTEXT} is not enabled',
59		TEXT_Config='The configuration file {@CONTEXT} was not found',
VersionableBehaviorObjectBuilderModifierTest.php https://github.com/mattleff/propel.git | PHP | 650 lines
1<?php
2
3/*
4 *	$Id: VersionableBehaviorTest.php 1460 2010-01-17 22:36:48Z francois $
5 * This file is part of the Propel package.
11
12require_once 'PHPUnit/Framework.php';
13require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php';
13require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php';
14require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/versionable/VersionableBehavior.php';
15require_once dirname(__FILE__) . '/../../../../../runtime/lib/Propel.php';
23 */
24class VersionableBehaviorObjectBuilderModifierTest extends PHPUnit_Framework_TestCase
25{
75			$schema2 = <<<EOF
76<database name="versionable_behavior_test_2" defaultPhpNamingMethod="nochange">
77	<table name="VersionableBehaviorTest6">
AuthenticationType.php git://github.com/concrete5/concrete5.git | PHP | 528 lines
1<?php
2namespace Concrete\Core\Authentication;
342        $db = Loader::db();
343        if (method_exists($this->controller, 'deleteType')) {
344            $this->controller->deleteType();
400    {
401        $type_form = $this->mapAuthenticationTypeFilePath('type_form.php');
402        if ($type_form->exists()) {
424
425        $form_element = $this->mapAuthenticationTypeFilePath($element . '.php');
426        if (!$form_element->exists()) {
426        if (!$form_element->exists()) {
427            $form_element = $this->mapAuthenticationTypeFilePath('form.php');
428            if (method_exists($this->controller, 'form')) {
432        ob_start();
433        if (method_exists($this->controller, $element)) {
434            call_user_func_array([$this->controller, $element], $params);
class.extensibleobject.php https://bitbucket.org/photocrati/nextgen-gallery | PHP | 840 lines
1<?php
2
2
3include_once('class.pope_cache.php');
4
104        // Define the instance
105		if (method_exists($this, 'define_instance'))
106		{
109		}
110		elseif (method_exists($this, 'define')) {
111			$reflection = new ReflectionMethod($this, 'define');
117			// Initialize the state of the object
118			if (method_exists($this, 'initialize')) {
119				$reflection = new ReflectionMethod($this, 'initialize');
178            $retval = $this->_mixins[$class] = &$obj;
179            if (method_exists($obj, 'initialize')) $obj->initialize();
180			unset($obj->object);
TestID3Frame.php http://php-reader.googlecode.com/svn/trunk/ | PHP | 1,231 lines
1<?php
2/**
30 *
31 * @package    php-reader
32 * @subpackage Tests
32 * @subpackage Tests
33 * @copyright  Copyright (c) 2008 The PHP Reader Project Workgroup
34 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
34 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
35 * @version    $Id: TestID3Frame.php 179 2010-03-09 14:36:37Z svollbehr $
36 */
38/**#@+ @ignore */
39require_once 'PHPUnit/Framework.php';
40require_once 'Zend/Io/Reader.php';
80    /* Ignore WIP frames */
81    $ignore = array('Aspi.php', 'Mllt.php');
82
mock_objects_test.php http://scalr.googlecode.com/svn/ | PHP | 834 lines
1<?php
2// $Id: mock_objects_test.php,v 1.36 2007/07/07 00:31:03 lastcraft Exp $
4require_once(dirname(__FILE__) . '/../expectation.php');
5require_once(dirname(__FILE__) . '/../mock_objects.php');
6
161        $mock = &new MockDummy();
162        $this->assertTrue(method_exists($mock, "aMethod"));
163        $this->assertNull($mock->aMethod());
604    function skip() {
605        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Overloading not tested for PHP 4');
606    }
742    function skip() {
743        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Static methods not tested in PHP 4');
744    }
759    function skip() {
760        $this->skipIf(version_compare(phpversion(), '5', '<='), 'Abstract class/methods not tested in PHP 4');
761    }
TestID3Frame.php http://xepec.googlecode.com/svn/trunk/ | PHP | 1,229 lines
1<?php
2/**
30 *
31 * @package    php-reader
32 * @subpackage Tests
32 * @subpackage Tests
33 * @copyright  Copyright (c) 2008 The PHP Reader Project Workgroup
34 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
34 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
35 * @version    $Id: TestID3Frame.php 129 2008-12-28 19:00:44Z svollbehr $
36 */
38/**#@+ @ignore */
39require_once("PHPUnit/Framework.php");
40require_once("Reader.php");
80    /* Ignore WIP frames */
81    $ignore = array("ASPI.php", "MLLT.php");
82
TestID3Frame.php http://phpvideotoolkit.googlecode.com/svn/trunk/ | PHP | 1,218 lines
1<?php
2/**
30 *
31 * @package    php-reader
32 * @subpackage Tests
32 * @subpackage Tests
33 * @copyright  Copyright (c) 2008 The PHP Reader Project Workgroup
34 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
34 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
35 * @version    $Id: TestID3Frame.php 111 2008-09-05 17:20:56Z svollbehr $
36 */
38/**#@+ @ignore */
39require_once("PHPUnit/Framework.php");
40require_once("Reader.php");
75    /* Ignore WIP frames */
76    $ignore = array("ASPI.php", "MLLT.php");
77
PodsForm.php https://github.com/ElmsPark/pods.git | PHP | 967 lines
1<?php
2/**
78
79        pods_view( PODS_DIR . 'ui/fields/_label.php', compact( array_keys( get_defined_vars() ) ) );
80
107
108        pods_view( PODS_DIR . 'ui/fields/_comment.php', compact( array_keys( get_defined_vars() ) ) );
109
138
139        if ( ( !isset( $options[ 'data' ] ) || empty( $options[ 'data' ] ) ) && is_object( self::$loaded[ $type ] ) && method_exists( self::$loaded[ $type ], 'data' ) )
140            $data = $options[ 'data' ] = self::$loaded[ $type ]->data( $name, $value, $options, $pod, $id );
145            eval( '?>' . $helper[ 'code' ] );
146        elseif ( method_exists( get_class(), 'field_' . $type ) )
147            echo call_user_func( array( get_class(), 'field_' . $type ), $name, $value, $options );
147            echo call_user_func( array( get_class(), 'field_' . $type ), $name, $value, $options );
148        elseif ( is_object( self::$loaded[ $type ] ) && method_exists( self::$loaded[ $type ], 'input' ) )
149            self::$loaded[ $type ]->input( $name, $value, $options, $pod, $id );
testgradecategory.php https://bitbucket.org/ceu/moodle_demo | PHP | 472 lines
1<?php // $Id: testgradecategory.php,v 1.7.2.3 2009/04/29 13:44:17 skodak Exp $
2
79        $grade_category = new grade_category($this->grade_categories[1]);
80        $this->assertTrue(method_exists($grade_category, 'build_path'));
81        $path = grade_category::build_path($grade_category);
86        $grade_category = new grade_category();
87        $this->assertTrue(method_exists($grade_category, 'fetch'));
88
95        $grade_category = new grade_category();
96        $this->assertTrue(method_exists($grade_category, 'fetch_all'));
97
103        $grade_category = new grade_category($this->grade_categories[0]);
104        $this->assertTrue(method_exists($grade_category, 'update'));
105
339        $category = new grade_category($this->grade_categories[0]);
340        $this->assertTrue(method_exists($category, 'load_grade_item'));
341        $this->assertEqual(null, $category->grade_item);
ActiveRecord.php https://github.com/petski/SnapElements.git | PHP | 434 lines
1<?php
2if (!class_exists('ActiveRecordInflector'))
2if (!class_exists('ActiveRecordInflector'))
3  require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'inflector.php';
4require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Association.php';
4require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Association.php';
5require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'BelongsTo.php';
6require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'HasMany.php';
6require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'HasMany.php';
7require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'HasOne.php';
8require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.php';
8require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.php';
9require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'db_adapters' .DIRECTORY_SEPARATOR . AR_ADAPTER.'.php';
10class ActiveRecord {
137  static function decode_if_json($json) {
138    require_once dirname(__FILE__) .DIRECTORY_SEPARATOR. 'Zend' .DIRECTORY_SEPARATOR. 'Json.php';
139    if (is_string($json) && preg_match('/^\s*[\{\[]/', $json) != 0) {
WFWebApplication.php https://github.com/SwissalpS/phocoa.git | PHP | 419 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
5 * @copyright Copyright (c) 2005 Alan Pinstein. All Rights Reserved.
6 * @version $Id: kvcoding.php,v 1.3 2004/12/12 02:44:09 alanpinstein Exp $
7 * @author Alan Pinstein <apinstein@mac.com>                        
28    }
29    else if (is_object($val) && method_exists($val, '__toString'))
30    {
106            // load delegate
107            $delegate_path = APP_ROOT . '/classes/' . WEBAPP_DELEGATE . '.php';
108            if ( !file_exists($delegate_path) )
124            $this->sessionWillStart();
125            require('framework/WFSession.php');
126            $this->initialize();        // this is
275        // let the application try to autoload the class
276        if (is_object($this->delegate) && method_exists($this->delegate, 'autoload'))
277        {
EntityGeneratorTest.php https://github.com/stephaneerard/doctrine2.git | PHP | 489 lines
1<?php
2
9
10require_once __DIR__ . '/../../TestInit.php';
11
105    {
106        $path = $this->_tmpDir . '/'. $this->_namespace . '/EntityGeneratorBook.php';
107        $this->assertFileExists($path);
118        $this->assertTrue(class_exists($metadata->name), "Class does not exist.");
119        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', '__construct'), "EntityGeneratorBook::__construct() missing.");
120        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
120        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
121        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setName'), "EntityGeneratorBook::setName() missing.");
122        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
122        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
123        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setAuthor'), "EntityGeneratorBook::setAuthor() missing.");
124        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getAuthor'), "EntityGeneratorBook::getAuthor() missing.");
GeneratorTest.php https://gitlab.com/jhonn/rest.git | PHP | 177 lines
1<?php
2class Framework_MockObject_GeneratorTest extends PHPUnit_Framework_TestCase
4    /**
5     * @var PHPUnit_Framework_MockObject_Generator
6     */
10    {
11        $this->generator = new PHPUnit_Framework_MockObject_Generator;
12    }
14    /**
15     * @covers PHPUnit_Framework_MockObject_Generator::getMock
16     * @expectedException PHPUnit_Framework_Exception
23    /**
24     * @covers PHPUnit_Framework_MockObject_Generator::getMock
25     */
159     * Same as "testGetMockForSingletonWithReflectionSuccess", but we expect
160     * warning for PHP < 5.4.0 since PHPUnit will try to execute private __wakeup
161     * on unserialize
VersionableBehaviorObjectBuilderModifierTest.php https://bitbucket.org/franhb/propel | PHP | 907 lines
1<?php
2
3/*
4 *	$Id: VersionableBehaviorTest.php 1460 2010-01-17 22:36:48Z francois $
5 * This file is part of the Propel package.
11
12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php';
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/versionable/VersionableBehavior.php';
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/versionable/VersionableBehavior.php';
14require_once dirname(__FILE__) . '/../../../../../runtime/lib/Propel.php';
15
22 */
23class VersionableBehaviorObjectBuilderModifierTest extends PHPUnit_Framework_TestCase
24{
75            $schema2 = <<<EOF
76        <database name="versionable_behavior_test_2" defaultPhpNamingMethod="nochange">
77            <table name="VersionableBehaviorTest6">
EntityGeneratorTest.php https://bitbucket.org/Evgenii/zf2t.git | PHP | 590 lines
1<?php
2
9
10require_once __DIR__ . '/../../TestInit.php';
11
106    {
107        $path = $this->_tmpDir . '/'. $this->_namespace . '/EntityGeneratorBook.php';
108        $this->assertFileExists($path);
119        $this->assertTrue(class_exists($metadata->name), "Class does not exist.");
120        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', '__construct'), "EntityGeneratorBook::__construct() missing.");
121        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
121        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getId'), "EntityGeneratorBook::getId() missing.");
122        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setName'), "EntityGeneratorBook::setName() missing.");
123        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
123        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getName'), "EntityGeneratorBook::getName() missing.");
124        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'setAuthor'), "EntityGeneratorBook::setAuthor() missing.");
125        $this->assertTrue(method_exists($metadata->namespace . '\EntityGeneratorBook', 'getAuthor'), "EntityGeneratorBook::getAuthor() missing.");
VersionableBehaviorObjectBuilderModifierTest.php git://github.com/propelorm/Propel.git | PHP | 1,021 lines
1<?php
2
3/*
4 *	$Id: VersionableBehaviorTest.php 1460 2010-01-17 22:36:48Z francois $
5 * This file is part of the Propel package.
11
12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php';
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/versionable/VersionableBehavior.php';
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/versionable/VersionableBehavior.php';
14require_once dirname(__FILE__) . '/../../../../../runtime/lib/Propel.php';
15
22 */
23class VersionableBehaviorObjectBuilderModifierTest extends PHPUnit_Framework_TestCase
24{
73            $schema2 = <<<XML
74        <database name="versionable_behavior_test_2" defaultPhpNamingMethod="nochange">
75            <table name="VersionableBehaviorTest6">
NestedSetBehaviorTest.php git://github.com/propelorm/Propel.git | PHP | 125 lines
1<?php
2
10
11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreTestBase.php';
12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php';
12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php';
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/nestedset/NestedSetBehavior.php';
14require_once dirname(__FILE__) . '/../../../../../generator/lib/platform/MysqlPlatform.php';
27        $this->assertEquals(count($table9->getColumns()), 5, 'nested_set adds three column by default');
28        $this->assertTrue(method_exists('Table9', 'getTreeLeft'), 'nested_set adds a tree_left column by default');
29        $this->assertTrue(method_exists('Table9', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column');
29        $this->assertTrue(method_exists('Table9', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column');
30        $this->assertTrue(method_exists('Table9', 'getTreeRight'), 'nested_set adds a tree_right column by default');
31        $this->assertTrue(method_exists('Table9', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column');
31        $this->assertTrue(method_exists('Table9', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column');
32        $this->assertTrue(method_exists('Table9', 'getTreeLevel'), 'nested_set adds a tree_level column by default');
33        $this->assertTrue(method_exists('Table9', 'getLevel'), 'nested_set maps the level getter with the tree_level column');
SluggableBehaviorTest.php git://github.com/propelorm/Propel.git | PHP | 465 lines
1<?php
2
10
11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreTestBase.php';
12
25        $this->assertEquals(count($table13->getColumns()), 3, 'Sluggable adds one columns by default');
26        $this->assertTrue(method_exists('Table13', 'getSlug'), 'Sluggable adds a slug column by default');
27        $table14 = Table14Peer::getTableMap();
28        $this->assertEquals(count($table14->getColumns()), 3, 'Sluggable does not add a column when it already exists');
29        $this->assertTrue(method_exists('Table14', 'getUrl'), 'Sluggable allows customization of slug_column name');
30        $this->assertTrue(method_exists('Table14', 'getSlug'), 'Sluggable adds a standard getter for the slug column');
34    {
35        $this->assertTrue(method_exists('Table13', 'getSlug'), 'Sluggable adds a getter for the slug column');
36        $t = new Table13();
38        $this->assertEquals('foo', $t->getSlug(), 'getSlug() returns the object slug');
39        $this->assertTrue(method_exists('Table14', 'getSlug'), 'Sluggable adds a getter for the slug column, even if the column does not have the default name');
40        $t = new Table14();
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21