Skip to content

Commit

Permalink
Fixed benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Sep 9, 2016
1 parent bab8c48 commit 5bfdc3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/benchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ function createCollection()

function createObject()
{
$post = new \JMS\Serializer\Tests\Fixtures\BlogPost('FooooooooooooooooooooooBAR', new \JMS\Serializer\Tests\Fixtures\Author('Foo'), new \DateTime);
$p = new \JMS\Serializer\Tests\Fixtures\Publisher('bar');
$post = new \JMS\Serializer\Tests\Fixtures\BlogPost('FooooooooooooooooooooooBAR', new \JMS\Serializer\Tests\Fixtures\Author('Foo'), new \DateTime, $p);
for ($i=0; $i<10; $i++) {
$post->addComment(new \JMS\Serializer\Tests\Fixtures\Comment(new \JMS\Serializer\Tests\Fixtures\Author('foo'), 'foobar'));
}
Expand Down

0 comments on commit 5bfdc3f

Please sign in to comment.