examplejs
examplejs copied to clipboard
phpunit
/**
*
* @example test1
```php
<?php
$a = 1;
echo "hello $1";
// > hello 1
```
*/
<?php
class Test1 extends PHPUnit_Framework_TestCase
{
// ...
/**
* @test test1
*/
public function test1()
{
$a = 1;
$this->assertEquals("hello $1", 'hello 1');
}
// ...
}