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 Illuminate\Foundation\Testing\DatabaseMigrations; | |
use WpShop\Product; | |
class ProductOverviewTest extends TestCase | |
{ | |
use DatabaseMigrations; | |
/** |
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
Listen 8080 | |
<VirtualHost *:8080> | |
LoadModule php5_module /home/ubuntu/.phpenv/versions/5.3.3/libexec/apache2/libphp5.so | |
DocumentRoot /home/ubuntu/wppusher-plugin/wordpress | |
ServerName wppusher-plugin.dev | |
<FilesMatch \.php$> | |
SetHandler application/x-httpd-php | |
</FilesMatch> |
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
machine: | |
timezone: | |
Europe/Copenhagen | |
php: | |
version: 5.3.3 | |
# This will be added to the `/etc/hosts` file | |
hosts: | |
wppusher-plugin.dev: 127.0.0.1 |
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 | |
namespace WpShipper\Handlers\Commands; | |
use Illuminate\Foundation\Application; | |
use League\Tactician\Command; | |
use League\Tactician\Handler\Locator\HandlerLocator; | |
class LaravelHandlerLocator implements HandlerLocator | |
{ |
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 | |
return array( | |
// Each string will be passed to the shell as a command. | |
'commands' => array( | |
'composer install', | |
), | |
// Defaults to true and is not required. | |
// If set to false, installing and update can take a long time | |
// and may seem like it's 'hanging'. | |
// 'async' => false, |
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 | |
class ConversationsController extends BaseController { | |
public function show($user_id, $conversation_id) | |
{ | |
var_dump($user_id); | |
var_dump($conversation_id); | |
} |
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 | |
class TodoItemTest extends TestCase { | |
public function testCreateTodoItem() | |
{ | |
// Visit create action and get crawler instance | |
$crawler = $this->client->request('GET', '/todo-items/create'); | |
// Check that request returned 200 |
NewerOlder