Skip to content
Permalink
Browse files

uses TestCase::skipIf() to reduce code and bring it to top

  • Loading branch information...
TheFRedFox committed May 30, 2016
1 parent ef802cd commit 1a2ccbad515d4b3d483468eae094c746fb5d67dc
Showing with 2 additions and 6 deletions.
  1. +2 −6 tests/TestCase/Network/Http/Auth/OauthTest.php
@@ -298,19 +298,15 @@ public function testRsaSigningWithPassphraseString()
*/
public function testRsaSigningWithPassphraseFile()
{
$this->skipIf(PHP_EOL != "\n", 'Just the line ending "\n" is supported. You can run the test again e.g. on a linux system.');
$request = new Request();
$request->url('http://photos.example.net/photos')
->body([
'file' => 'vacaction.jpg',
'size' => 'original'
]);
$privateKeyPath = TEST_APP . DS . 'config' . DS . 'key_with_passphrase.pem';
if (PHP_EOL != "\n") {
$this->markTestSkipped('Just the line ending ("\n") is supported. You can run the test again e.g. on a linux system.');
return;
}
$passphrasePath = TEST_APP . DS . 'config' . DS . 'key_passphrase_lf';
$passphrase = fopen($passphrasePath, 'r');

0 comments on commit 1a2ccba

Please sign in to comment.
You can’t perform that action at this time.