source: https://github.com/Behat/Behat/blob/master/CHANGES.md
- フォーマッタの言語コンフィギュレーションとロケールを修正した。
<?php | |
$date = new \DateTime(); | |
// 平成◯◯年 | |
$dateFormatter = \IntlDateFormatter::create( | |
"ja_JP@calendar=japanese", | |
\IntlDateFormatter::FULL, | |
\IntlDateFormatter::FULL, | |
"Asia/Tokyo", | |
\IntlDateFormatter::TRADITIONAL, |
./configure \ | |
--prefix=/opt/local/php/5.4 \ | |
--bindir=/opt/local/bin/php54 \ | |
--with-config-file-path=/opt/local/php/5.4/etc \ | |
--with-config-file-scan-dir=/opt/local/php/5.4/var/db \ | |
--mandir=/opt/local/php/5.4/share/man \ | |
--infodir=/opt/local/php/5.4/share/info \ | |
--program-suffix=-5.4 \ | |
--with-apxs2=/opt/local/apache2/bin/apxs \ | |
--enable-pdo \ |
; sf2 standard deps here | |
; ; | |
; | |
; utilities for my web development | |
; | |
; some utilities | |
[XnniUtilBundle] | |
git=git://github.com/hidenorigoto/XnniUtilBundle.git |
server { | |
listen 80; | |
root /var/www/sitename; | |
server_name sitename; | |
index index.html index.php app.php; | |
if ($uri ~ \.(css|png|js|gif|jpg)$) { | |
break; | |
} |
<?php | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
<?php | |
require_once __DIR__ . '/TestCaseBase.php'; | |
class TargetTest extends TestCaseBase | |
{ | |
public function testAlwaysTrue() | |
{ | |
$this->assertTrue(true); | |
} | |
} |
# language: ja | |
フィーチャ: 初めてのフィーチャ | |
PHPerとして | |
PHP 5.3.2以降を使いたい | |
なぜならSymfony2が動作する必須要件だからだ | |
シナリオ: PHPのバージョンを調べる | |
もし PHPのバージョン番号を取得する | |
ならば 取得したバージョン番号が "5.3.2" 以上であること |
<?php | |
require_once 'Phake.php'; | |
\Phake::setClient(\Phake::CLIENT_PHPUNIT); |
source: https://github.com/Behat/Behat/blob/master/CHANGES.md
<?php | |
require __DIR__ . '/vendor/doctrine/lib/Doctrine/ORM/Tools/Setup.php'; | |
$lib = __DIR__ . '/vendor/doctrine'; | |
Doctrine\ORM\Tools\Setup::registerAutoloadGit($lib); | |
$config = Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(array(__DIR__ . '/Entity/Project/Entity'), true); | |
$loader = new Doctrine\Common\ClassLoader("Project\Entity", __DIR__ . '/Entity'); | |
$loader->register(); | |
$connectionOptions = array( |