Skip to content

Commit

Permalink
Update namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Macnamara committed Jan 11, 2016
1 parent 863dc06 commit b604919
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"autoload": {
"psr-4": {
"Nathanmac\\QRCode\\": "src/"
"Nathanmac\\Utilities\\QRCode\\": "src/"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tests/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protected function tearDown()
/** @test */
public function it_should_use_the_defaults()
{
$generator = new \Nathanmac\QRCode\Generator('QR Code Content');
$generator = new \Nathanmac\Utilities\QRCode\Generator('QR Code Content');

$this->assertEquals(100, $generator->getSize());
$this->assertEquals(array('r' => 0, 'g' => 0, 'b' => 0, 'a' => 0), $generator->getColor());
Expand All @@ -22,7 +22,7 @@ public function it_should_use_the_defaults()
/** @test */
public function it_should_get_the_content()
{
$generator = new \Nathanmac\QRCode\Generator('QR+Code+Content');
$generator = new \Nathanmac\Utilities\QRCode\Generator('QR+Code+Content');

$this->assertEquals('QR Code Content', $generator->getContent());
}
Expand Down Expand Up @@ -51,7 +51,7 @@ public function sizeProvider()
*/
public function it_should_process_the_size($size, $expected)
{
$generator = new \Nathanmac\QRCode\Generator('QR Code Content');
$generator = new \Nathanmac\Utilities\QRCode\Generator('QR Code Content');

$generator->setSize($size);
$this->assertEquals($expected, $generator->getSize());
Expand Down Expand Up @@ -83,7 +83,7 @@ public function colorProvider()
*/
public function it_should_process_the_color($color, $expected)
{
$generator = new \Nathanmac\QRCode\Generator('QR Code Content');
$generator = new \Nathanmac\Utilities\QRCode\Generator('QR Code Content');

$generator->setColor($color);
$this->assertEquals($expected, $generator->getColor());
Expand All @@ -108,7 +108,7 @@ public function it_should_create_a_qr_code()
$qrcode->shouldReceive('setBackgroundColor')->once()->andReturn($qrcode);
$qrcode->shouldReceive('render')->once();

$generator = m::mock('\Nathanmac\QRCode\Generator')
$generator = m::mock('\Nathanmac\Utilities\QRCode\Generator')
->makePartial()
->shouldAllowMockingProtectedMethods();

Expand Down

0 comments on commit b604919

Please sign in to comment.