[Argil-svn] SF.net SVN: argil: [508] branches/experimental
Status: Alpha
Brought to you by:
tswicegood
|
From: <tsw...@us...> - 2007-04-01 04:05:35
|
Revision: 508
http://argil.svn.sourceforge.net/argil/?rev=508&view=rev
Author: tswicegood
Date: 2007-03-31 21:05:36 -0700 (Sat, 31 Mar 2007)
Log Message:
-----------
Make this actually work - not sure how it got commits
Modified Paths:
--------------
branches/experimental/src/Argil/Reflection/Object.php
branches/experimental/tests/Argil/Reflection/ObjectTest.php
Modified: branches/experimental/src/Argil/Reflection/Object.php
===================================================================
--- branches/experimental/src/Argil/Reflection/Object.php 2007-03-26 23:59:40 UTC (rev 507)
+++ branches/experimental/src/Argil/Reflection/Object.php 2007-04-01 04:05:36 UTC (rev 508)
@@ -1,5 +1,7 @@
<?php
+require_once 'Argil/Reflection/PropertyList.php';
+
class Argil_Reflection_Object
{
private $_decorated = null;
@@ -15,4 +17,10 @@
$arguments
);
}
+
+ public function getProperties() {
+ return new Argil_Reflection_PropertyList(
+ $this->_decorated->getProperties()
+ );
+ }
}
\ No newline at end of file
Modified: branches/experimental/tests/Argil/Reflection/ObjectTest.php
===================================================================
--- branches/experimental/tests/Argil/Reflection/ObjectTest.php 2007-03-26 23:59:40 UTC (rev 507)
+++ branches/experimental/tests/Argil/Reflection/ObjectTest.php 2007-04-01 04:05:36 UTC (rev 508)
@@ -17,7 +17,7 @@
);
$properties = $reflection->getProperties();
- $this->assertTrue(is_array($properties));
+ $this->assertTrue(is_array($properties) || $properties instanceof ArrayAccess);
$this->assertTrue(count($properties) == 3);
$this->assertIsA($properties[0], 'Argil_Reflection_Property');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|