Skip to content

Instantly share code, notes, and snippets.

@pavelkucera
Last active December 10, 2015 10:08
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 pavelkucera/4418539 to your computer and use it in GitHub Desktop.
Save pavelkucera/4418539 to your computer and use it in GitHub Desktop.
failure: foo hitchhiker Earth exists
test.php(10)
<?php
$suite('foo', function() {
$suite('hitchhiker', function() {
$test('the ultimate answer to life, the universe and everything', function() {
$should->equal(42, 'the ultimate answer to life, the universe and everything');
});
$test('Earth exists', function() {
$should->exist(Earth);
});
});
$suite('Nette', function() {
$test('is awesome', function() {
// …
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment