Skip to content

Commit

Permalink
Fix namespacing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Macnamara committed May 29, 2014
1 parent a25c67a commit 0a93db2
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"autoload": {
"psr-0": {
"PugStop\\Parser": "src/"
"Nathanmac\\Parser": "src/"
}
},
"minimum-stability": "stable"
Expand Down
2 changes: 1 addition & 1 deletion examples/AutoDetect.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "../vendor/autoload.php";
require "../src/Parser.php";

use NathanMac\Parser;
use Nathanmac\Parser;

$parser = new Parser();

Expand Down
2 changes: 1 addition & 1 deletion examples/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "../vendor/autoload.php";
require "../src/Parser.php";

use NathanMac\Parser;
use Nathanmac\Parser;

$parser = new Parser();

Expand Down
2 changes: 1 addition & 1 deletion examples/QueryString.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "../vendor/autoload.php";
require "../src/Parser.php";

use NathanMac\Parser;
use Nathanmac\Parser;

$parser = new Parser();

Expand Down
2 changes: 1 addition & 1 deletion examples/Serial.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "../vendor/autoload.php";
require "../src/Parser.php";

use NathanMac\Parser;
use Nathanmac\Parser;

$parser = new Parser();

Expand Down
2 changes: 1 addition & 1 deletion examples/XML.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "../vendor/autoload.php";
require "../src/Parser.php";

use NathanMac\Parser;
use Nathanmac\Parser;

$parser = new Parser();

Expand Down
2 changes: 1 addition & 1 deletion examples/YAML.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "../vendor/autoload.php";
require "../src/Parser.php";

use NathanMac\Parser;
use Nathanmac\Parser;

$parser = new Parser();

Expand Down
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace NathanMac;
<?php namespace Nathanmac;

use Symfony\Component\Yaml\Yaml;
use Exception;
Expand Down
10 changes: 5 additions & 5 deletions tests/ParserPHPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
require dirname(__FILE__)."/../vendor/autoload.php";
require dirname(__FILE__).'/../src/Parser.php';

use NathanMac\Parser;
use Nathanmac\Parser;

class ParserPHPTest extends PHPUnit_Framework_TestCase {

/** @test */
public function parse_auto_detect_json_data()
{
$parser = $this->getMock('NathanMac\Parser', array('_payload'));
$parser = $this->getMock('Nathanmac\Parser', array('_payload'));

$parser->expects($this->any())
->method('_payload')
Expand All @@ -22,7 +22,7 @@ public function parse_auto_detect_json_data()
/** @test */
public function parse_auto_detect_xml_data()
{
$parser = $this->getMock('NathanMac\Parser', array('_payload', '_format'));
$parser = $this->getMock('Nathanmac\Parser', array('_payload', '_format'));

$parser->expects($this->any())
->method('_payload')
Expand All @@ -37,7 +37,7 @@ public function parse_auto_detect_xml_data()
/** @test */
public function parse_auto_detect_xml_data_define_content_type_as_param()
{
$parser = $this->getMock('NathanMac\Parser', array('_payload'));
$parser = $this->getMock('Nathanmac\Parser', array('_payload'));

$parser->expects($this->any())
->method('_payload')
Expand All @@ -49,7 +49,7 @@ public function parse_auto_detect_xml_data_define_content_type_as_param()
/** @test */
public function throw_an_exception_when_parsed_auto_detect_mismatch_content_type()
{
$parser = $this->getMock('NathanMac\Parser', array('_payload', '_format'));
$parser = $this->getMock('Nathanmac\Parser', array('_payload', '_format'));

$parser->expects($this->any())
->method('_payload')
Expand Down

0 comments on commit 0a93db2

Please sign in to comment.