Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/brizy-pro   php

Repository URL to install this package:

Version: 2.3.7 

/ drewm / drip / tests / DatasetTest.php

<?php
 
use DrewM\Drip\Drip;
use DrewM\Drip\Dataset;
use PHPUnit\Framework\TestCase;

 
class DatasetTest extends TestCase
{

	public function testJsonSerialization()
	{
		$Dataset = new Dataset('subscribers', [
					'email' => 'postmaster@example.com',
				]);

		$result = json_encode($Dataset);

		$expected = json_encode([
			'subscribers' => [
    			[
					'email' => 'postmaster@example.com',
				]
			]
		]);

		$this->assertEquals($expected, $result);

	}


}