From 5bfdc3f83ff5ae5bdf15f3fbbfe85fa4b55e119c Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Fri, 9 Sep 2016 17:33:59 +0300 Subject: [PATCH] Fixed benchmark --- tests/benchmark.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/benchmark.php b/tests/benchmark.php index 448dc0207..f1c8d95f0 100644 --- a/tests/benchmark.php +++ b/tests/benchmark.php @@ -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')); }