add example test file.
This commit is contained in:
parent
2b7e4d1873
commit
ae7faf1e45
11
phpunit.php
11
phpunit.php
|
@ -16,13 +16,16 @@
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Override the framework paths if testing Laravel.
|
// Override the framework paths if testing Laravel.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
if (in_array('build.xml', $_SERVER['argv']))
|
foreach ($_SERVER['argv'] as $argument)
|
||||||
{
|
{
|
||||||
define('APP_PATH', realpath('bundles/laravel-tests/application').DS);
|
if (strpos($argument, 'build.xml') !== false)
|
||||||
|
{
|
||||||
|
define('APP_PATH', realpath('bundles/laravel-tests/application').DS);
|
||||||
|
|
||||||
define('BUNDLE_PATH', realpath('bundles/laravel-tests/bundles').DS);
|
define('BUNDLE_PATH', realpath('bundles/laravel-tests/bundles').DS);
|
||||||
|
|
||||||
define('STORAGE_PATH', realpath('bundles/laravel-tests/storage').DS);
|
define('STORAGE_PATH', realpath('bundles/laravel-tests/storage').DS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class TestExample extends PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test that a given condition is met.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function testSomethingIsTrue()
|
||||||
|
{
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue