svn: /pear/packages/XML_GRDDL/trunk/tests/ example.php
| From: | Daniel O'Connor | Date: | Sat, 19 Mar 2011 02:53:44 +0000 |
| Subject: | svn: /pear/packages/XML_GRDDL/trunk/tests/ example.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-61478@lists.php.net to get a copy of this message | ||
clockwerx Sat, 19 Mar 2011 02:53:44 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309418
Log:
Avoid the factory method - the test will fail as it is currently written due to how the cwd changes.
Changed paths:
U pear/packages/XML_GRDDL/trunk/tests/example.php
Modified: pear/packages/XML_GRDDL/trunk/tests/example.php
===================================================================
--- pear/packages/XML_GRDDL/trunk/tests/example.php 2011-03-19 02:46:38 UTC (rev 309417)
+++ pear/packages/XML_GRDDL/trunk/tests/example.php 2011-03-19 02:53:44 UTC (rev 309418)
@@ -44,7 +44,8 @@
*/
require_once 'XML/GRDDL.php';
-require_once 'PHPUnit/Framework/Assert.php';
+require_once 'XML/GRDDL/Driver/Xsl.php';
+require_once 'PHPUnit/Framework.php';
require_once 'Log.php';
@@ -82,7 +83,7 @@
$other_options = isset($test['options']) ? $test['options'] : array();
$test_options = array_merge($options, $other_options);
- $grddl = XML_GRDDL::factory('Xsl', $test_options);
+ $grddl = new XML_GRDDL_Driver_Xsl($test_options);
$in = $grddl->fetch($test['in']);