Skip to content

Instantly share code, notes, and snippets.

@alnutile
Last active June 17, 2017 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alnutile/08f4490172fd0d15322266b264d4ce90 to your computer and use it in GitHub Desktop.
Save alnutile/08f4490172fd0d15322266b264d4ce90 to your computer and use it in GitHub Desktop.
<?php
namespace Alnutile\Example;
class SkeletonClassTest extends TestCase
{
/**
* Test that true does in fact equal true
*/
public function testTrueIsTrue()
{
$name = "foo";
$message = "Bar";
/** @var SkeletonClass $skel */
$skel = $this->app->getContainer()['skel'];
$results = $skel->echoPhrase($name, $message);
$this->assertEquals("Hello foo, Bar", $results);
$this->assertEquals("boo", $skel->getConfigValueByKey('baz'));
$this->assertEquals("bar_env", env("foo_env"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment