Skip to content

Commit

Permalink
Fix concatenated calls to dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 4, 2023
1 parent 1242ded commit 65c1a08
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion tests/XML/cas/AttributesTest.php
Expand Up @@ -38,7 +38,7 @@ protected function setUp(): void
$this->testedClass = Attributes::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_attributes.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_attributes.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/AuthenticationDateTest.php
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
$this->testedClass = AuthenticationDate::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_authenticationDate.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_authenticationDate.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/AuthenticationFailureTest.php
Expand Up @@ -34,7 +34,7 @@ protected function setUp(): void
$this->testedClass = AuthenticationFailure::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_authenticationFailure.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_authenticationFailure.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/AuthenticationSuccessTest.php
Expand Up @@ -44,7 +44,7 @@ protected function setUp(): void
$this->testedClass = AuthenticationSuccess::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_authenticationSuccess.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_authenticationSuccess.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/IsFromNewLoginTest.php
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
$this->testedClass = IsFromNewLogin::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_isFromNewLogin.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_isFromNewLogin.xml',
);
}

Expand Down
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
$this->testedClass = LongTermAuthenticationRequestTokenUsed::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_longTermAuthenticationRequestTokenUsed.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_longTermAuthenticationRequestTokenUsed.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/ProxiesTest.php
Expand Up @@ -34,7 +34,7 @@ protected function setUp(): void
$this->testedClass = Proxies::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_proxies.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_proxies.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/ProxyFailureTest.php
Expand Up @@ -34,7 +34,7 @@ protected function setUp(): void
$this->testedClass = ProxyFailure::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_proxyFailure.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_proxyFailure.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/ProxyGrantingTicketTest.php
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
$this->testedClass = ProxyGrantingTicket::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_proxyGrantingTicket.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_proxyGrantingTicket.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/ProxySuccessTest.php
Expand Up @@ -35,7 +35,7 @@ protected function setUp(): void
$this->testedClass = ProxySuccess::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_proxySuccess.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_proxySuccess.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/ProxyTest.php
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
$this->testedClass = Proxy::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_proxy.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_proxy.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/ProxyTicketTest.php
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
$this->testedClass = ProxyTicket::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_proxyTicket.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_proxyTicket.xml',
);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/XML/cas/ServiceResponseTest.php
Expand Up @@ -39,12 +39,12 @@ final class ServiceResponseTest extends TestCase
*/
protected function setUp(): void
{
$this->schema = dirname(dirname(dirname(dirname(__FILE__)))) . '/schemas/cas-server-protocol-3.0.xsd';
$this->schema = dirname(__FILE__, 4) . '/schemas/cas-server-protocol-3.0.xsd';

$this->testedClass = ServiceResponse::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_serviceResponse.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_serviceResponse.xml',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XML/cas/UserTest.php
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
$this->testedClass = User::class;

$this->xmlRepresentation = DOMDocumentFactory::fromFile(
dirname(dirname(dirname(__FILE__))) . '/resources/xml/cas_user.xml',
dirname(__FILE__, 3) . '/resources/xml/cas_user.xml',
);
}

Expand Down

0 comments on commit 65c1a08

Please sign in to comment.