PHP code example of turanct / omikron

1. Go to this page and download the library: Download turanct/omikron 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/ */

    

turanct / omikron example snippets


 return

within("calculus",
    describe("addition",
        it("adds two numbers", function() { return
            expect(1 + 1, toBe(3)); // Will return false => failing test
        }),
        it("adds three numbers", function() { return
            expect(1 + 1 + 1, toBe(3));
        })
    ),
    describe("subtraction",
        it("subtracts two numbers", function() { return
            expect(3 - 2, toBe(1));
        })
    )
);