<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: The PHP SDK's unit tests are failing in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/15544#M8845</link>
    <description>&lt;P&gt;Upon further examination, I figured out that these unit tests failures and errors can all be traced to specific features that aren't enabled by default in our test account. For example, our test account doesn't handle partial authorizations, so that unit test was failing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice if the unit tests or their documentation could take into account this sort of configuration dependency. Regardless, I hope my post to the forum will help someone in the future.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2011 23:06:38 GMT</pubDate>
    <dc:creator>meeisenberg</dc:creator>
    <dc:date>2011-08-01T23:06:38Z</dc:date>
    <item>
      <title>The PHP SDK's unit tests are failing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/15438#M8792</link>
      <description>&lt;P&gt;I'm evaluating the Authorize.Net PHP SDK (version 3.1.2) to see if it will meet my company's integration needs. As a first step, I downloaded the SDK and ran its built-in suite of unit tests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the unit tests yield a number of errors and failures (see below). I'm reluctant to use the SDK if it doesn't pass its own unit test suite! Has anyone encountered these errors, or been able to fix them or work around them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running the unit tests in PHP 5.2.5 on Windows. I've enabled the required PHP extensions, along with the SOAP and OpenSSL extensions which are not documented as requirements, but appear to be necessary to run the SOAP-related unit tests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output of the test suite is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E:\Projects\anet_php_sdk\tests&amp;gt;phpunit .&lt;BR /&gt;PHPUnit 3.4.9 by Sebastian Bergmann.&lt;BR /&gt;&lt;BR /&gt;........F.....................F..........EEEEEEE.......FFFEF 60 / 63&lt;BR /&gt;F..&lt;BR /&gt;&lt;BR /&gt;Time: 26 seconds, Memory: 6.25Mb&lt;BR /&gt;&lt;BR /&gt;There were 8 errors:&lt;BR /&gt;&lt;BR /&gt;1) AuthorizeNetCP_Test::testAuthCapture&lt;BR /&gt;Undefined property:&amp;nbsp; AuthorizeNetCP::$_custom_fields&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetCP.php:86&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\shared\AuthorizeNetRequest.php:117&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetAIM.php:112&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetCP_Test.php:19&lt;BR /&gt;&lt;BR /&gt;2) AuthorizeNetCP_Test::testAuthCaptureTrack1&lt;BR /&gt;Undefined property:&amp;nbsp; AuthorizeNetCP::$_custom_fields&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetCP.php:86&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\shared\AuthorizeNetRequest.php:117&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetAIM.php:112&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetCP_Test.php:50&lt;BR /&gt;&lt;BR /&gt;3) AuthorizeNetCP_Test::testAuthCaptureTrack2&lt;BR /&gt;Undefined property:&amp;nbsp; AuthorizeNetCP::$_custom_fields&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetCP.php:86&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\shared\AuthorizeNetRequest.php:117&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetAIM.php:112&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetCP_Test.php:64&lt;BR /&gt;&lt;BR /&gt;4) AuthorizeNetCP_Test::testAuthCaptureTrack2Error&lt;BR /&gt;Undefined property:&amp;nbsp; AuthorizeNetCP::$_custom_fields&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetCP.php:86&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\shared\AuthorizeNetRequest.php:117&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetAIM.php:112&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetCP_Test.php:78&lt;BR /&gt;&lt;BR /&gt;5) AuthorizeNetCP_Test::testResponseFields&lt;BR /&gt;Undefined property:&amp;nbsp; AuthorizeNetCP::$_custom_fields&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetCP.php:86&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\shared\AuthorizeNetRequest.php:117&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetAIM.php:112&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetCP_Test.php:95&lt;BR /&gt;&lt;BR /&gt;6) AuthorizeNetCP_Test::testXmlResponse&lt;BR /&gt;Undefined property:&amp;nbsp; AuthorizeNetCP::$_custom_fields&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetCP.php:86&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\shared\AuthorizeNetRequest.php:117&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetAIM.php:112&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetCP_Test.php:127&lt;BR /&gt;&lt;BR /&gt;7) AuthorizeNetCP_Test::testXmlResponseFailure&lt;BR /&gt;Undefined property:&amp;nbsp; AuthorizeNetCP::$_custom_fields&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetCP.php:86&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\shared\AuthorizeNetRequest.php:117&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetAIM.php:112&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetCP_Test.php:159&lt;BR /&gt;&lt;BR /&gt;8) AuthorizeNetTD_Test::testGetTransactionsForDay&lt;BR /&gt;Undefined property:&amp;nbsp; AuthorizeNetTD_Response::$xpath_xml&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\shared\AuthorizeNetXMLResponse.php:54&lt;BR /&gt;E:\Projects\anet_php_sdk\lib\AuthorizeNetTD.php:104&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetTD_Test.php:35&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There were 7 failures:&lt;BR /&gt;&lt;BR /&gt;1) AuthorizeNetAIM_Sandbox_Test::testAuthCaptureECheckSandbox&lt;BR /&gt;Failed asserting that &amp;lt;boolean:false&amp;gt; is true.&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetAIM_Test.php:285&lt;BR /&gt;&lt;BR /&gt;2) AuthorizeNetARB_Test::testAllMethods&lt;BR /&gt;Failed asserting that &amp;lt;boolean:false&amp;gt; is true.&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetARB_Test.php:27&lt;BR /&gt;&lt;BR /&gt;3) AuthorizeNetTD_Test::testGetSettledBatchList&lt;BR /&gt;Failed asserting that &amp;lt;boolean:false&amp;gt; is true.&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetTD_Test.php:14&lt;BR /&gt;&lt;BR /&gt;4) AuthorizeNetTD_Test::testGetSettledBatchListIncludeStatistics&lt;BR /&gt;Failed asserting that &amp;lt;boolean:false&amp;gt; is true.&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetTD_Test.php:22&lt;BR /&gt;&lt;BR /&gt;5) AuthorizeNetTD_Test::testGetSettledBatchListForMonth&lt;BR /&gt;Failed asserting that &amp;lt;boolean:false&amp;gt; is true.&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetTD_Test.php:29&lt;BR /&gt;&lt;BR /&gt;6) AuthorizeNetTD_Test::testGetTransactionList&lt;BR /&gt;Failed asserting that &amp;lt;boolean:false&amp;gt; is true.&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetTD_Test.php:43&lt;BR /&gt;&lt;BR /&gt;7) AuthorizeNetTD_Test::testGetTransactionDetails&lt;BR /&gt;Failed asserting that &amp;lt;boolean:false&amp;gt; is true.&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\tests\AuthorizeNetTD_Test.php:61&lt;BR /&gt;&lt;BR /&gt;FAILURES!&lt;BR /&gt;Tests: 63, Assertions: 175, Failures: 7, Errors: 8.&lt;BR /&gt;&lt;BR /&gt;E:\Projects\anet_php_sdk\tests&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2011 18:48:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/15438#M8792</guid>
      <dc:creator>meeisenberg</dc:creator>
      <dc:date>2011-07-29T18:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: The PHP SDK's unit tests are failing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/15544#M8845</link>
      <description>&lt;P&gt;Upon further examination, I figured out that these unit tests failures and errors can all be traced to specific features that aren't enabled by default in our test account. For example, our test account doesn't handle partial authorizations, so that unit test was failing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice if the unit tests or their documentation could take into account this sort of configuration dependency. Regardless, I hope my post to the forum will help someone in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2011 23:06:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/15544#M8845</guid>
      <dc:creator>meeisenberg</dc:creator>
      <dc:date>2011-08-01T23:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: The PHP SDK's unit tests are failing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/15710#M8926</link>
      <description>&lt;P&gt;Glad you got it figure out! And thanks for the suggestion. I'll pass that on to our developers for a future SDK update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2011 16:39:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/15710#M8926</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2011-08-04T16:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: The PHP SDK's unit tests are failing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/32998#M17537</link>
      <description>&lt;P&gt;Issue still presents through&amp;nbsp;a years :(&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2013 23:57:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-PHP-SDK-s-unit-tests-are-failing/m-p/32998#M17537</guid>
      <dc:creator>cystbear</dc:creator>
      <dc:date>2013-02-11T23:57:45Z</dc:date>
    </item>
  </channel>
</rss>

