Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
- Test for same object, not equality of objects, when testing fluent
  interface
  • Loading branch information
weierophinney committed Oct 16, 2012
1 parent cc273a6 commit 8e7fa2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/Writer/DeletedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,6 @@ public function testFluentInterface()
->setReference('foo')
->setWhen(null);

$this->assertEquals($result, $entry);
$this->assertSame($result, $entry);
}
}
2 changes: 1 addition & 1 deletion test/Writer/EntryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,6 @@ public function testFluentInterface()
->setType('type')
->setSource(new \Zend\Feed\Writer\Source());

$this->assertEquals($result, $entry);
$this->assertSame($result, $entry);
}
}
2 changes: 1 addition & 1 deletion test/Writer/FeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,6 @@ public function testFluentInterface()
->setTitle('foo')
->setType('foo');

$this->assertEquals($return, $writer);
$this->assertSame($return, $writer);
}
}

0 comments on commit 8e7fa2d

Please sign in to comment.