cvs: ZendEngine2 /tests bug30346.phpt

From: Date: Sat, 03 Dec 2005 00:00:46 +0000
Subject: cvs: ZendEngine2 /tests bug30346.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4417@lists.php.net to get a copy of this message
sniper Fri Dec 2 19:00:46 2005 EDT Modified files: /ZendEngine2/tests bug30346.phpt Log: Nuked dos EOLs and fixed typo http://cvs.php.net/diff.php/ZendEngine2/tests/bug30346.phpt?r1=1.2&r2=1.3&ty=u Index: ZendEngine2/tests/bug30346.phpt diff -u ZendEngine2/tests/bug30346.phpt:1.2 ZendEngine2/tests/bug30346.phpt:1.3 --- ZendEngine2/tests/bug30346.phpt:1.2 Fri Dec 2 10:59:36 2005 +++ ZendEngine2/tests/bug30346.phpt Fri Dec 2 19:00:44 2005 @@ -1,24 +1,24 @@ ---TEST-- -Bug #30346 (arrayAcces & using $this) ---FILE-- -<?php - -class Test implements ArrayAccess -{ - public function __construct() { } - public function offsetExists( $offset ) { return false; } - public function offsetGet( $offset ) { return $offset; } - public function offsetSet( $offset, $data ) { } - public function offsetUnset( $offset ) { } -} - -$post = new Test; -$id = 'page'; -echo $post[$id.'_show']; -echo "\n"; - -?> -===DONE=== ---EXPECT-- -page_show -===DONE=== +--TEST-- +Bug #30346 (arrayAccess and using $this) +--FILE-- +<?php + +class Test implements ArrayAccess +{ + public function __construct() { } + public function offsetExists( $offset ) { return false; } + public function offsetGet( $offset ) { return $offset; } + public function offsetSet( $offset, $data ) { } + public function offsetUnset( $offset ) { } +} + +$post = new Test; +$id = 'page'; +echo $post[$id.'_show']; +echo "\n"; + +?> +===DONE=== +--EXPECT-- +page_show +===DONE===

« previous php.zend-engine.cvs (#4417) next »