Skip to content

Commit f076476

Browse files
committed
Fixed class name
1 parent 508ff4f commit f076476

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Kore\DataObject;
44

5-
class Struct
5+
class DataObject
66
{
77
/**
88
* Generic constructor
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
namespace Kore\DataObject;
44

5-
class TestStruct extends Struct {
5+
class TestDataObject extends Struct {
66
public $property;
77
}
88

99
/**
10-
* @covers \Kagency\CouchdbEndpoint\Struct
10+
* @covers \Kagency\CouchdbEndpoint\DataObject
1111
*/
12-
class StructTest extends \PHPUnit_Framework_TestCase
12+
class DataObjectTest extends \PHPUnit_Framework_TestCase
1313
{
1414
public function testGetValue()
1515
{
16-
$struct = new TestStruct();
16+
$struct = new TestDataObject();
1717

1818
$this->assertNull($struct->property);
1919
}
2020

2121
public function testConstructor()
2222
{
23-
$struct = new TestStruct(
23+
$struct = new TestDataObject(
2424
array(
2525
'property' => 42,
2626
)
@@ -31,15 +31,15 @@ public function testConstructor()
3131

3232
public function testSetValue()
3333
{
34-
$struct = new TestStruct();
34+
$struct = new TestDataObject();
3535
$struct->property = 42;
3636

3737
$this->assertSame(42, $struct->property);
3838
}
3939

4040
public function testUnsetValue()
4141
{
42-
$struct = new TestStruct();
42+
$struct = new TestDataObject();
4343
$struct->property = 42;
4444
unset($struct->property);
4545

@@ -51,7 +51,7 @@ public function testUnsetValue()
5151
*/
5252
public function testGetUnknownValue()
5353
{
54-
$struct = new TestStruct();
54+
$struct = new TestDataObject();
5555

5656
$this->assertNull($struct->unknown);
5757
}
@@ -61,7 +61,7 @@ public function testGetUnknownValue()
6161
*/
6262
public function testConstructorUnknwonValue()
6363
{
64-
$struct = new TestStruct(
64+
$struct = new TestDataObject(
6565
array(
6666
'unknown' => 42,
6767
)
@@ -73,7 +73,7 @@ public function testConstructorUnknwonValue()
7373
*/
7474
public function testSetUnknownValue()
7575
{
76-
$struct = new TestStruct();
76+
$struct = new TestDataObject();
7777
$struct->unknown = 42;
7878
}
7979

@@ -82,7 +82,7 @@ public function testSetUnknownValue()
8282
*/
8383
public function testUnsetUnknownValue()
8484
{
85-
$struct = new TestStruct();
85+
$struct = new TestDataObject();
8686
unset($struct->unknown);
8787
}
8888
}

0 commit comments

Comments
 (0)