Skip to content

Instantly share code, notes, and snippets.

@MarkLL
MarkLL / test-results.md
Last active January 23, 2017 11:24
Testing results

Asumming you have enable BasicAuth in your MAutic server and ...

Make sure you have the correct MauticApiTestCase that has:

protected function getAuth()
{
  $this->config = include __DIR__.'/../local.config.php';
  $authMethod   = isset($this->config['AuthMethod']) ? $this->config['AuthMethod'] : 'OAuth';
  
  $apiAuth = new ApiAuth();
@MarkLL
MarkLL / spintax.php
Last active September 5, 2015 01:34 — forked from irazasyed/spintax.php
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
* @name Spintax
* @author Jason Davis - https://www.codedevelopr.com/
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/
* Modified by Mark Larsen:
* Added ability so that a fixed output can be returned.
*/
class Spintax