Skip to content

Instantly share code, notes, and snippets.

@outo
outo / period_test.go
Created November 30, 2017 10:25
Example of using Ginkgo/Gomega to create BDD style test cases with fluid assertions. This example is using Describe/DescribeTable/Measure blocks.
package pops_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/ginkgo/extensions/table"
"time"
p "github.com/outo/temporal/pops"
)
@outo
outo / periods_test.go
Created November 30, 2017 10:26
Example of using Ginkgo/Gomega to create BDD style test cases with fluid assertions. This example is using Describe/DescribeTable/Measure blocks.
package pops_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
p "github.com/outo/temporal/pops"
"time"
)
<?php
/*
Plugin Name: Pain Inducer
*/
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
require_once(plugin_dir_path( __FILE__ ) . '/dataset.php');
class WPPainInducer
{
<?php
class WPPainInducerDataset
{
private $prefixedTableName;
/**
* WPPainInducerDataset constructor.
* @param $tableName - name of table to store pain