Skip to content

Instantly share code, notes, and snippets.

@Pierozi
Last active August 29, 2015 14:22
Show Gist options
  • Save Pierozi/cc4cbce154a397f758ec to your computer and use it in GitHub Desktop.
Save Pierozi/cc4cbce154a397f758ec to your computer and use it in GitHub Desktop.
Atoum TU with PsySh eval
<?php
namespace
{
class Foo
{
public function get()
{
$string = 'foobarbaz';
eval(Psy\sh());
return $string;
}
}
}
namespace tests\units
{
use atoum;
class Foo extends atoum
{
public function testGet()
{
$this
->if($this->newTestedInstance)
->then
->string($this->testedInstance->get())
->isEqualTo('foobarbaz');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment