This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
peter-m@m ~/Schreibtisch $ curl -i -H "Accept: application/json; q=1.0, */*; q=0.1" "http://yii2-rest/objects/1" | |
HTTP/1.1 200 OK | |
Date: Mon, 24 Nov 2014 12:36:46 GMT | |
Server: Apache/2.4.7 (Ubuntu) | |
X-Powered-By: PHP/5.5.9-1ubuntu4.5 | |
Content-Length: 23 | |
Content-Type: application/json; charset=UTF-8 | |
{"id":1,"title":"test"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "hello world"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use app\commands\ObjectExportController; | |
use app\tests\fixtures\ModelFixtureDataCreator; | |
class MyTest extends PHPUnit_Framework_TestCase | |
{ | |
protected function setUp() | |
{ | |
require_once 'yii_booter_for_tests.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use app\commands\ObjectExportController; | |
use app\tests\fixtures\ModelFixtureDataCreator; | |
class MyTest extends PHPUnit_Framework_TestCase | |
{ | |
protected function setUp() | |
{ | |
require_once 'yii_booter_for_tests.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use app\commands\ObjectExportController; | |
use app\tests\fixtures\ModelFixtureDataCreator; | |
class MyTest extends PHPUnit_Framework_TestCase | |
{ | |
protected function setUp() | |
{ | |
require_once 'yii_booter_for_tests.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use app\commands\ObjectExportController; | |
use app\tests\fixtures\ModelFixtureDataCreator; | |
class MyTest extends PHPUnit_Framework_TestCase | |
{ | |
protected function setUp() | |
{ | |
require_once 'yii_booter_for_tests.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use app\commands\ObjectExportController; | |
use app\tests\fixtures\ModelFixtureDataCreator; | |
class MyTest extends PHPUnit_Framework_TestCase | |
{ | |
protected function setUp() | |
{ | |
require_once 'yii_booter_for_tests.php'; | |
$test_classname = get_class($this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use app\commands\ObjectExportController; | |
use app\tests\fixtures\ModelFixtureDataCreator; | |
class MyTest extends PHPUnit_Framework_TestCase | |
{ | |
protected function setUp() | |
{ | |
require_once 'yii_booter_for_tests.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use app\tests\fixtures\ModelFixtureDataCreator; | |
class MyTest extends PHPUnit_Framework_TestCase | |
{ | |
protected function setUp() | |
{ | |
require_once 'yii_booter_for_tests.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('YII_DEBUG') or define('YII_DEBUG', true); | |
// fcgi doesn't have STDIN and STDOUT defined by default | |
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r')); | |
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w')); | |
require_once(__DIR__ . '/vendor/autoload.php'); | |
require_once(__DIR__ . '/vendor/yiisoft/yii2/Yii.php'); |
OlderNewer