[Argil-svn] SF.net SVN: argil: [524] branches/experimental/tests/Argil/Reflection/ PropertyTest.php
Status: Alpha
Brought to you by:
tswicegood
|
From: <tsw...@us...> - 2007-05-24 01:54:09
|
Revision: 524
http://argil.svn.sourceforge.net/argil/?rev=524&view=rev
Author: tswicegood
Date: 2007-05-23 18:54:09 -0700 (Wed, 23 May 2007)
Log Message:
-----------
Add in a quick sanity check just to insure that it's properly loading the String spec
Modified Paths:
--------------
branches/experimental/tests/Argil/Reflection/PropertyTest.php
Modified: branches/experimental/tests/Argil/Reflection/PropertyTest.php
===================================================================
--- branches/experimental/tests/Argil/Reflection/PropertyTest.php 2007-05-24 01:50:40 UTC (rev 523)
+++ branches/experimental/tests/Argil/Reflection/PropertyTest.php 2007-05-24 01:54:09 UTC (rev 524)
@@ -68,6 +68,9 @@
$stringReflection = new Argil_Reflection_Property($properties[4]);
$this->assertEqual('string', $stringReflection->getName(), 'sanity check');
+ $object->string = 'hello world';
+ $this->assertTrue($stringReflection->isValid($object), 'sanity check');
+
$object->string = 123;
$this->assertFalse($stringReflection->isValid($object));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|