add example test file.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user