Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
scabo committed Jul 5, 2012
1 parent 2395907 commit aa3a4b7
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/Pattern/ValueObject/Abstract.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

abstract class Pattern_VolumeObject_Abstract
abstract class Pattern_ValueObject_Abstract
{
protected $_value = null;

2 changes: 1 addition & 1 deletion library/Pattern/ValueObject/Positive.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

final class Pattern_VolumeObject_Positive
final class Pattern_ValueObject_Positive
extends Pattern_VolumeObject_Abstract
{
public function add($value)
2 changes: 1 addition & 1 deletion library/Pattern/ValueObject/WearSize.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

final class Pattern_VolumeObject_WearSize
final class Pattern_ValueObject_WearSize
extends Pattern_VolumeObject_Abstract
{
private $_possibleValues = array('n/a', 'xs', 's', 'm', 'l', 'xl');
10 changes: 10 additions & 0 deletions tests/Pattern/ValueObject/PositiveTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

class Pattern_ValueObject_PositiveTest extends PHPUnit_Framework_TestCase
{
public function testTryIncorrectStringValue_Zero()
{
$expected = new Pattern_ValueObject_Positive('hello');
$this->assertEquals($expected->getValue(), 0);
}
}

0 comments on commit aa3a4b7

Please sign in to comment.