PHP code example of ackintosh / toumi

1. Go to this page and download the library: Download ackintosh/toumi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ackintosh / toumi example snippets



function hoge($arg)
{
    return 'hoge' . $arg;
}

somefunction(1234);

function fuga()
{
    $f = function () { echo 'fuga'; };
    call_user_func($f);
}

var_dump(hoge('hogehoge'));
exit;


// Only function declaration is 

class LegacyTest extends PHPUnit_Framework_TestCase
{
    /**
     * @test
     */
    public function hoge()
    {
        $this->assertSame('hogefuga', hoge('fuga'));
    }
}