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 Person | |
{ | |
/** @var Person */ | |
private $_partner; | |
/** @var Culture */ | |
private $_culture; | |
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 TemporaryInternalEncoding | |
{ | |
private $_originalEncoding; | |
public function __construct($encoding) | |
{ | |
$this->_originalEncoding = mb_internal_encoding(); | |
mb_internal_encoding($encoding); | |
} |
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 Behat\MinkExtension\Context\MinkContext; | |
use Diggin\Bridge\Guzzle\AutoCharsetEncodingPlugin\AutoCharsetEncodingPlugin; | |
class FeatureContext extends MinkContext | |
{ | |
/* ommitted */ | |
/** | |
* @BeforeScenario |
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 | |
interface HearerInterface | |
{ | |
public function retain($key, $value); | |
} | |
interface SelfExpressableInteface | |
{ | |
public function expressSelf(HearerInteface $hearer); | |
} |
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
$ behat | |
フィーチャ: 検索機能 | |
欲しい商品を見つけるために | |
会員または非会員として | |
商品を検索できる | |
シナリオ: カメラを検索する # features/search.feature:7 | |
前提 "ショッピングトップ" を表示している | |
もし "検索窓" に "カメラ" と入力する | |
かつ "検索" ボタンをクリックする |
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
# language: ja | |
フィーチャ: 検索機能 | |
欲しい商品を見つけるために | |
会員または非会員として | |
商品を検索できる | |
シナリオ: カメラを検索する | |
前提 "ショッピングトップ" を表示している | |
もし "検索窓" に "カメラ" と入力する | |
かつ "検索" ボタンをクリックする |
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
error_reporting(E_ALL); | |
function foo(){} | |
class Hoge{ public function __toString(){return "a";}} | |
$hoge = new Hoge(); | |
$hoge.foo();// Success! |
NewerOlder