1--TEST-- 2phpunit AssertionExampleTest ../_files/AssertionExampleTest.php 3--SKIPIF-- 4<?php 5if (PHP_MAJOR_VERSION < 7) { 6 print 'skip: PHP 7 is required' . PHP_EOL; 7} 8 9if (ini_get('zend.assertions') != 1) { 10 print 'skip: zend.assertions=1 is required' . PHP_EOL; 11} 12 13if (ini_get('assert.exception') != 1) { 14 print 'skip: assert.exception=1 is required' . PHP_EOL; 15} 16--FILE-- 17<?php 18$_SERVER['argv'][1] = '--no-configuration'; 19$_SERVER['argv'][2] = 'AssertionExampleTest'; 20$_SERVER['argv'][3] = __DIR__ . '/../_files/AssertionExampleTest.php'; 21 22require __DIR__ . '/../bootstrap.php'; 23PHPUnit_TextUI_Command::main(); 24?> 25--EXPECTF-- 26PHPUnit %s by Sebastian Bergmann and contributors. 27 28F 1 / 1 (100%) 29 30Time: %s, Memory: %s 31 32There was 1 failure: 33 341) AssertionExampleTest::testOne 35assert(false) in %sAssertionExample.php:%d 36 37FAILURES! 38Tests: 1, Assertions: 1, Failures: 1. 39