Skip to content

Commit 239d6b4

Browse files
committed
Standardized tests namespace to Tests\chobie\
1 parent 1f1223f commit 239d6b4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"autoload-dev": {
2727
"psr-4": {
28-
"chobie\\Tests\\": "tests"
28+
"Tests\\chobie\\": "tests"
2929
}
3030
},
3131
"extra": {

tests/Jira/Api/Authentication/BasicTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<?php
22

3-
class Jira_Api_Authentication_BasicTest extends PHPUnit_Framework_TestCase
3+
namespace Tests\chobie\Jira;
4+
5+
use chobie\Jira\Api\Authentication\Basic;
6+
7+
class BasicTest extends \PHPUnit_Framework_TestCase
48
{
59
public function testBasicAuthentication()
610
{
711
$id = "abc";
812
$pass = "def";
913

10-
$basic = new \chobie\Jira\Api\Authentication\Basic($id, $pass);
14+
$basic = new Basic($id, $pass);
1115
$this->assertEquals($id, $basic->getId());
1216
$this->assertEquals($pass, $basic->getPassword());
1317
$this->assertEquals(base64_encode(sprintf("%s:%s", $id, $pass)), $basic->getCredential());

tests/Jira/IssueTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace chobie\Tests\Jira;
3+
namespace Tests\chobie\Jira;
44

55
use chobie\Jira\IssueType;
66

0 commit comments

Comments
 (0)