mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
add example test file.
This commit is contained in:
parent
2b7e4d1873
commit
ae7faf1e45
11
phpunit.php
11
phpunit.php
@ -16,13 +16,16 @@ define('DS', DIRECTORY_SEPARATOR);
|
||||
// --------------------------------------------------------------
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------
|
||||
|
15
tests/application/example.test.php
Normal file
15
tests/application/example.test.php
Normal file
@ -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…
x
Reference in New Issue
Block a user