Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #222 from OndraM/skip-infocard-tests
Browse files Browse the repository at this point in the history
Skip infocard tests
  • Loading branch information
weierophinney committed Oct 23, 2013
2 parents f6aa3ac + 5cc9029 commit 4e70d10
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/Zend/InfoCard/AssertionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public static function main()

public function setUp()
{
if (version_compare(PHP_VERSION, '5.4', '>=')) {
$this->markTestSkipped('SimpleXML implementation changed and CardSpace technology is discontinued');
}

$this->tokenDocument = dirname(__FILE__) . '/_files/signedToken.xml';
$this->sslPubKey = dirname(__FILE__) . '/_files/ssl_pub.cert';
$this->sslPrvKey = dirname(__FILE__) . '/_files/ssl_private.cert';
Expand All @@ -72,14 +76,12 @@ public function testAssertionProcess()
$assertions = Zend_InfoCard_Xml_Assertion::getInstance($this->_xmlDocument);

$this->assertTrue($assertions instanceof Zend_InfoCard_Xml_Assertion_Saml);

$this->assertSame($assertions->getMajorVersion(), 1);
$this->assertSame($assertions->getMinorVersion(), 1);
$this->assertSame($assertions->getAssertionID(), "uuid:5cf2cd76-acf6-45ef-9059-a811801b80cc");
$this->assertSame($assertions->getIssuer(), "http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/self");
$this->assertSame($assertions->getConfirmationMethod(), Zend_InfoCard_Xml_Assertion_Saml::CONFIRMATION_BEARER);
$this->assertSame($assertions->getIssuedTimestamp(), 1190153823);

$this->assertSame(1, $assertions->getMajorVersion());
$this->assertSame(1, $assertions->getMinorVersion());
$this->assertSame("uuid:5cf2cd76-acf6-45ef-9059-a811801b80cc", $assertions->getAssertionID());
$this->assertSame("http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/self", $assertions->getIssuer());
$this->assertSame(Zend_InfoCard_Xml_Assertion_Saml::CONFIRMATION_BEARER, $assertions->getConfirmationMethod());
$this->assertSame(1190153823, $assertions->getIssuedTimestamp());
}

public function testAssertionErrors()
Expand Down
7 changes: 7 additions & 0 deletions tests/Zend/InfoCard/CipherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
class Zend_InfoCard_CipherTest extends PHPUnit_Framework_TestCase
{

public function setUp()
{
if (version_compare(PHP_VERSION, '5.4', '>=')) {
$this->markTestSkipped('SimpleXML implementation changed and CardSpace technology is discontinued');
}
}

public function testPkiPadding()
{
if (!extension_loaded('openssl')) {
Expand Down
4 changes: 4 additions & 0 deletions tests/Zend/InfoCard/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public static function main()

public function setUp()
{
if (version_compare(PHP_VERSION, '5.4', '>=')) {
$this->markTestSkipped('SimpleXML implementation changed and CardSpace technology is discontinued');
}

$this->tokenDocument = dirname(__FILE__) . '/_files/encryptedtoken.xml';
$this->sslPubKey = dirname(__FILE__) . '/_files/ssl_pub.cert';
$this->sslPrvKey = dirname(__FILE__) . '/_files/ssl_private.cert';
Expand Down
4 changes: 4 additions & 0 deletions tests/Zend/InfoCard/XmlParsingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public static function main()

public function setUp()
{
if (version_compare(PHP_VERSION, '5.4', '>=')) {
$this->markTestSkipped('SimpleXML implementation changed and CardSpace technology is discontinued');
}

$this->tokenDocument = dirname(__FILE__) . '/_files/encryptedtoken.xml';
$this->tokenDocument2 = dirname(__FILE__) . '/_files/encryptedtoken2.xml';
$this->loadXmlDocument();
Expand Down

0 comments on commit 4e70d10

Please # to comment.