From 948a32434d4e72765dd26c803e94129b5c2f7769 Mon Sep 17 00:00:00 2001
From: "ctrlaltca@gmail.com" <>
Date: Sat, 21 May 2011 21:18:26 +0000
Subject: fixed unix tests, bumped version number
---
framework/PradoBase.php | 2 +-
index.html | 4 ++--
tests/unit/Collections/TPagedListTest.php | 2 +-
tests/unit/Collections/TQueueTest.php | 2 +-
tests/unit/Collections/TStackTest.php | 2 +-
tests/unit/Data/SqlMap/AllTests.php | 4 ++--
tests/unit/Prado.php | 4 ++--
tests/unit/Util/TDateTimeStampTest.php | 2 +-
tests/unit/Web/UI/WebControls/TDropDownListTest.php | 2 +-
9 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index 222f492e..78f5cc9f 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -71,7 +71,7 @@ class PradoBase
*/
public static function getVersion()
{
- return '3.1.7';
+ return '3.1.8';
}
/**
diff --git a/index.html b/index.html
index 810d6c53..4c6ca066 100644
--- a/index.html
+++ b/index.html
@@ -8,8 +8,8 @@
PRADO Framework for PHP 5
-Version 3.1.7, February 22, 2010
-Copyright© 2004-2010 by Prado Software
+
Version 3.1.8, May xx, 2011
+Copyright© 2004-2011 by Prado Software
All Rights Reserved.
diff --git a/tests/unit/Collections/TPagedListTest.php b/tests/unit/Collections/TPagedListTest.php
index dc567e55..2f1b40cc 100644
--- a/tests/unit/Collections/TPagedListTest.php
+++ b/tests/unit/Collections/TPagedListTest.php
@@ -172,7 +172,7 @@ class TPagedListTest extends PHPUnit_Framework_TestCase {
public function testGetIterator() {
$list = new TPagedList(array(1, 2));
$list->CustomPaging = true;
- self::assertType('TListIterator', $list->getIterator());
+ self::assertType('ArrayIterator', $list->getIterator());
$n = 0;
$found = 0;
foreach($list as $index => $item) {
diff --git a/tests/unit/Collections/TQueueTest.php b/tests/unit/Collections/TQueueTest.php
index 1c755480..341c3f38 100644
--- a/tests/unit/Collections/TQueueTest.php
+++ b/tests/unit/Collections/TQueueTest.php
@@ -96,7 +96,7 @@ class TQueueTest extends PHPUnit_Framework_TestCase {
public function testGetIterator() {
$queue = new TQueue(array(1, 2));
- self::assertType('TQueueIterator', $queue->getIterator());
+ self::assertType('ArrayIterator', $queue->getIterator());
$n = 0;
$found = 0;
foreach($queue as $index => $item) {
diff --git a/tests/unit/Collections/TStackTest.php b/tests/unit/Collections/TStackTest.php
index e4c4e5d1..77fb1c97 100644
--- a/tests/unit/Collections/TStackTest.php
+++ b/tests/unit/Collections/TStackTest.php
@@ -96,7 +96,7 @@ class TStackTest extends PHPUnit_Framework_TestCase {
public function testGetIterator() {
$stack = new TStack(array(1, 2));
- self::assertType('TStackIterator', $stack->getIterator());
+ self::assertType('ArrayIterator', $stack->getIterator());
$n = 0;
$found = 0;
foreach($stack as $index => $item) {
diff --git a/tests/unit/Data/SqlMap/AllTests.php b/tests/unit/Data/SqlMap/AllTests.php
index 735f1202..66f02608 100644
--- a/tests/unit/Data/SqlMap/AllTests.php
+++ b/tests/unit/Data/SqlMap/AllTests.php
@@ -6,7 +6,7 @@ if(!defined('PHPUnit_MAIN_METHOD')) {
}
require_once 'DynamicParameterTest.php';
-require_once './DataMapper/AllTests.php';
+require_once 'DataMapper/AllTests.php';
class Data_SqlMap_AllTests {
@@ -27,4 +27,4 @@ class Data_SqlMap_AllTests {
if(PHPUnit_MAIN_METHOD == 'Data_SqlMap_AllTests::main') {
Data_SqlMap_AllTests::main();
}
-?>
\ No newline at end of file
+?>
diff --git a/tests/unit/Prado.php b/tests/unit/Prado.php
index 9e73c934..18e3707f 100644
--- a/tests/unit/Prado.php
+++ b/tests/unit/Prado.php
@@ -19,7 +19,7 @@ class Prado extends PradoBase {
return self::$_application;
}
- public static function using($namespace)
+ public static function using($namespace,$checkClassExistence=true)
{
if(isset(self::$_usings[$namespace]) || class_exists($namespace,false))
return;
@@ -133,7 +133,7 @@ class Prado extends PradoBase {
$languages=array();
foreach(explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']) as $language)
{
- $array=split(';q=',trim($language));
+ $array=explode(';q=',trim($language));
$languages[trim($array[0])]=isset($array[1])?(float)$array[1]:1.0;
}
arsort($languages);
diff --git a/tests/unit/Util/TDateTimeStampTest.php b/tests/unit/Util/TDateTimeStampTest.php
index 5d296a83..8c6baf03 100644
--- a/tests/unit/Util/TDateTimeStampTest.php
+++ b/tests/unit/Util/TDateTimeStampTest.php
@@ -68,7 +68,7 @@ class TDateTimeStampTest extends PHPUnit_Framework_TestCase {
$this->assertEquals($s->get4DigitYear(10), 2010, "Err 2-digit 2010");
$this->assertEquals($s->get4DigitYear(20), 2020, "Err 2-digit 2020");
$this->assertEquals($s->get4DigitYear(30), 2030, "Err 2-digit 2030");
- $this->assertEquals($s->get4DigitYear(40), 1940, "Err 2-digit 1940");
+ $this->assertEquals($s->get4DigitYear(40), 2040, "Err 2-digit 2040");
$this->assertEquals($s->get4DigitYear(50), 1950, "Err 2-digit 1950");
$this->assertEquals($s->get4DigitYear(90), 1990, "Err 2-digit 1990");
}
diff --git a/tests/unit/Web/UI/WebControls/TDropDownListTest.php b/tests/unit/Web/UI/WebControls/TDropDownListTest.php
index 3db425b9..1fb73faf 100644
--- a/tests/unit/Web/UI/WebControls/TDropDownListTest.php
+++ b/tests/unit/Web/UI/WebControls/TDropDownListTest.php
@@ -15,7 +15,7 @@ class TDropDownListTest extends PHPUnit_Framework_TestCase {
'c' => 3);
$list->setDataSource($data);
$list->dataBind();
- $items =& $list->getItems();
+ $items = $list->getItems();
$this->assertTrue($items instanceof TListItemCollection);
$expected_keys = array_keys($data);
$i = 0;
--
cgit v1.2.3