Преглед изворни кода

Proper order of assert params

Ondřej Machulda пре 12 година
родитељ
комит
fe0167d81d
1 измењених фајлова са 6 додато и 8 уклоњено
  1. 6 8
      tests/Zend/InfoCard/AssertionTest.php

+ 6 - 8
tests/Zend/InfoCard/AssertionTest.php

@@ -72,14 +72,12 @@ class Zend_InfoCard_AssertionTest extends PHPUnit_Framework_TestCase
         $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()