This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class User_Model_Users implements Iterator, Countable { | |
protected $_count; | |
protected $_gateway; | |
protected $_resultSet; | |
public function __construct($results, $gateway) { | |
$this->setGateway ( $gateway ); | |
$this->_resultSet = $results; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $ | |
# @package Joomla | |
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. | |
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | |
# Joomla! is Free Software | |
## | |
##################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$view = new view; | |
$view->name = 'usterki'; | |
$view->description = 'usterki'; | |
$view->tag = ''; | |
$view->base_table = 'node'; | |
$view->api_version = '3.0-alpha1'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ | |
/* Display: Defaults */ | |
$handler = $view->new_display('default', 'Defaults', 'default'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT node.nid AS nid, field_data_field_adres.entity_id AS field_data_field_adres_entity_id, field_data_field_adres.etid AS field_data_field_adres_etid, field_data_field_adres.delta AS field_data_field_adres_delta, field_data_field_adres.language AS field_data_field_adres_language, field_data_field_adres.field_adres_value AS field_data_field_adres_field_adres_value, field_data_field_adres.field_adres_format AS field_data_field_adres_field_adres_format, node.vid AS node_vid, node.type AS node_type, field_data_field_telefon.entity_id AS field_data_field_telefon_entity_id, field_data_field_telefon.etid AS field_data_field_telefon_etid, field_data_field_telefon.delta AS field_data_field_telefon_delta, field_data_field_telefon.language AS field_data_field_telefon_language, field_data_field_telefon.field_telefon_value AS field_data_field_telefon_field_telefon_value, field_data_field_telefon.field_telefon_format AS field_data_field_telefon_field_telefon_format, node.created AS node_created, 'usterki:page_2' AS view |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function wrapText($text) | |
{ | |
$wrappedText = wordwrap($text, 110, "\n", false); | |
$token = strtok($wrappedText, "\n"); | |
$this->_yPosition = $this->_pageHeight - 80; | |
while ($token !== false) { | |
$this->_page->drawText($token, | |
$this->_leftMargin, | |
$this->_yPosition); | |
$token = strtok("\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ErrorControllerTest extends ControllerTestCase { | |
public function testErrorAction() { | |
$this->dispatch ( '/eee/eee' ); | |
//$this->assertController ( 'error' ); | |
//$this->assertAction ( 'error' ); | |
//$this->assertModule ( 'default' ); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('PHPUnit_MAIN_METHOD')) { | |
define('PHPUnit_MAIN_METHOD', 'SF_Application_AllTests::main'); | |
} | |
/** | |
* TestHelper | |
*/ | |
require_once dirname(__FILE__) . '/TestHelper.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get PHPUnit | |
*/ | |
//require_once 'PHPUnit/Framework.php'; | |
require_once 'PHPUnit/Framework/IncompleteTestError.php'; | |
require_once 'PHPUnit/Framework/TestCase.php'; | |
require_once 'PHPUnit/Framework/TestSuite.php'; | |
require_once 'PHPUnit/Runner/Version.php'; | |
require_once 'PHPUnit/TextUI/TestRunner.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Zend/Application.php'; | |
require_once 'Zend/Test/PHPUnit/ControllerTestCase.php'; | |
class ControllerTestCase extends Zend_Test_PHPUnit_ControllerTestCase | |
{ | |
public $application; | |
public function setUp() | |
{ |
NewerOlder