public function testToArrayReturnsArray() { $entity = new EntityStub(['name' => 'Hello world']); $this->assertTrue(is_array($entity->toArray())); }