Skip to content

Commit

Permalink
Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiolucca committed Apr 17, 2017
1 parent e5dbf50 commit 8a44281
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 26 deletions.
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"keywords": ["vagalume","sdk","api"],
"type": "library",
"license": "MIT",
"minimum-stability": "stable",
"prefer-stable": true,
"minimum-stability": "dev",
"authors": [
{
"name": "Giorgio Lucca",
Expand All @@ -28,12 +27,12 @@
},
"autoload": {
"psr-4": {
"VagalumeSdk\\": "src/"
"GiorgioLucca\\VagalumeSdk\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"VagalumeSdk\\Tests\\": "tests/"
"GiorgioLucca\\VagalumeSdk\\Tests\\": "tests/"
}
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion src/Enum/PeriodEnum.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VagalumeSdk\Enum;
namespace GiorgioLucca\VagalumeSdk\Enum;

abstract class PeriodEnum
{
Expand Down
2 changes: 1 addition & 1 deletion src/Enum/ScopeEnum.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VagalumeSdk\Enum;
namespace GiorgioLucca\VagalumeSdk\Enum;

abstract class ScopeEnum
{
Expand Down
2 changes: 1 addition & 1 deletion src/Enum/TypeEnum.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VagalumeSdk\Enum;
namespace GiorgioLucca\VagalumeSdk\Enum;

abstract class TypeEnum
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/VagalumeSdkException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VagalumeSdk\Exception;
namespace GiorgioLucca\VagalumeSdk\Exception;

class VagalumeSdkException extends \Exception
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/VagalumeSdkInvalidTypeException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VagalumeSdk\Exception;
namespace GiorgioLucca\VagalumeSdk\Exception;

class VagalumeSdkInvalidTypeException extends \Exception
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/VagalumeSdkNotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VagalumeSdk\Exception;
namespace GiorgioLucca\VagalumeSdk\Exception;

class VagalumeSdkNotFoundException extends \Exception
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/VagalumeSdkNullOrEmptyException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VagalumeSdk\Exception;
namespace GiorgioLucca\VagalumeSdk\Exception;

class VagalumeSdkNullOrEmptyException extends \Exception
{
Expand Down
12 changes: 6 additions & 6 deletions src/Vagalume.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace VagalumeSdk;
namespace GiorgioLucca\VagalumeSdk;

use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
use Psr\Http\Message\ResponseInterface;
use VagalumeSdk\Enum\TypeEnum;
use VagalumeSdk\Exception\VagalumeSdkException;
use VagalumeSdk\Exception\VagalumeSdkInvalidTypeException;
use VagalumeSdk\Exception\VagalumeSdkNotFoundException;
use VagalumeSdk\Exception\VagalumeSdkNullOrEmptyException;
use GiorgioLucca\VagalumeSdk\Enum\TypeEnum;
use GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkException;
use GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkInvalidTypeException;
use GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkNotFoundException;
use GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkNullOrEmptyException;

class Vagalume implements VagalumeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/VagalumeInterface.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace VagalumeSdk;
namespace GiorgioLucca\VagalumeSdk;

use VagalumeSdk\Exception\VagalumeSdkInvalidTypeException;
use VagalumeSdk\Exception\VagalumeSdkNullOrEmptyException;
use GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkInvalidTypeException;
use GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkNullOrEmptyException;

interface VagalumeInterface
{
Expand Down
12 changes: 6 additions & 6 deletions tests/VagalumeTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace VagalumeSdk\Tests;
namespace GiorgioLucca\VagalumeSdk\Tests;

use VagalumeSdk\Enum\TypeEnum;
use VagalumeSdk\Vagalume;
use GiorgioLucca\VagalumeSdk\Enum\TypeEnum;
use GiorgioLucca\VagalumeSdk\Vagalume;

class VagalumeTest extends \PHPUnit_Framework_TestCase
{
Expand All @@ -16,15 +16,15 @@ public function setUp()
}

/**
* @expectedException VagalumeSdk\Exception\VagalumeSdkNullOrEmptyException
* @expectedException GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkNullOrEmptyException
*/
public function testGetArtistWithoutName()
{
$this->getSdk()->getArtist('');
}

/**
* @expectedException VagalumeSdk\Exception\VagalumeSdkNotFoundException
* @expectedException GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkNotFoundException
*/
public function testGetArtistNotFound()
{
Expand Down Expand Up @@ -68,7 +68,7 @@ public function testGetNewsHasKey()
}

/**
* @expectedException VagalumeSdk\Exception\VagalumeSdkInvalidTypeException
* @expectedException GiorgioLucca\VagalumeSdk\Exception\VagalumeSdkInvalidTypeException
*/
public function testGetRadiosWithInvalidType()
{
Expand Down

0 comments on commit 8a44281

Please sign in to comment.