All-in-one creative subscription with full AI stack All-in-one creative subscription From $16.50/m

VimからPHPUnitを実行する方法をまとめました。PHPUnitをquickrunで非同期実行し、結果にグリーンレッドの色をつけるまでを紹介します。 動作確認環境 Vim7.3quickrun0.5.1vimproc5.3PHP5.3.9PHPUnit3.6.7 目次 PHPUnitのインストール quickrunのインストール vimprocのインストール quickrunの設定 テスト結果にグリーン、レッドの色をつける PHPUnitのインストール 私は下記を参考にPHPUnitをインストールしました。 http://docs.symfony.gr.jp/symfony2/contributing/code/tests.html PHPのバージョンがPHPUnitに対応しており、PEARがインストールされていればうまくいくと思います。PHPUnitがうまくインストールできない場合は
新年あけましておめでとうございます。今年もボチボチやっていきます。 本稿ではPHP製のWebスクレイピングライブラリGoutteを紹介します。 Goutte(グット)とは Goutteは必要十分な機能を持ったWebスクレイピングライブラリです。そもそもWebスクレイピングというのは、外部Webページから必要なデータを取ってくるくらいの意味です。つまり、GoutteはWebスクレイピングを簡単に行う道具だと考えればいいでしょう。 具体的には、GoutteはWebクローラとHTMLパーサを組み合わせたようなものです。Cookieやフォームの扱いなどWebブラウザとしての機能は一通り揃っていますし、CSS風の要素指定もできるなど、機能面では他のライブラリと遜色ないように感じます。 さらに僕個人がGoutteに期待している点は、安定性とロングサポートです。Goutteは主要機能をSymfony2お
I found the discussion on Do you test private method informative. I have decided, that in some classes, I want to have protected methods, but test them. Some of these methods are static and short. Because most of the public methods make use of them, I will probably be able to safely remove the tests later. But for starting with a TDD approach and avoid debugging, I really want to test them. I thou
PHPTAL PHP Template Attribute Language PHPTALのドキュメントを日本語訳しました。 現時点では勝手翻訳なので、この翻訳に関するご意見はtetsuya@wardish.jpまでお願いします。 目次 イントロダクション なぜPHPTALを使うのか インストール 最初の例 Template Attribute Language 1. 属性の優先度 2. TAL namespace 2.1. tal:define 2.2. tal:condition 2.3. tal:repeat 2.4. tal:omit-tag 2.5. tal:replace 2.6. tal:content 2.7. tal:attributes 2.8. tal:on-error 3. METAL namespace 3.1. metal:define-macro 3.2. m
Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference! Languages: English • Français • Italiano • コーディング基準 日本語 Português do Brasil • 中文(简体) • (Add your language) WordPress PHP, HTML, CSS and JavaScript Standards Have Moved The WordPress coding standards have been moved to the developer Hub: WordPress PHP Coding Standards. WordPress HTML Coding Standards. W
エクステンションのインストール 上記のパッケージを展開して取得できた dll を PHP エクステンションディレクトリに保存します。 PHP のエクステンションディレクトリは、php.ini にて、extension_dir で定義されています。 例えば次の場合、エクステンションディレクトリは C:\php\ext です。 extension_dir="C:\php\ext" これは特に SQL Server Driver for PHP 専用の設定というわけではありません。 プログラミング手順 ここでは典型的なプログラミング・コードサンプルを示します。 データベースへの接続 SQL Server との接続を確立するには、sqlsrv_connect 関数を利用します。 以下の例では SQL サーバー認証を用いて、PHP から SQL Server への接続を確立する例を示します。 'ID
Microsoft is holding an AI Agents Hackathon, and we want to see what you can build with Python! We'll have 20+ live streams showing you how to build AI agents with Python using popular agent frameworks and Microsoft technologies. Then, you can submit your project for a chance to win prizes, including a Best in Python prize!
For my coding work i mostly use Zend Studio. And i am a big fan of this IDE. But i also do a lot of work in the shell. And that asks for at least basic vim knowledge. My colleague is a big vim fan. And does most of his work in vim. So last week i was compiling a cheat-sheet for my self. And came across a slideshow of one of Andrei Zmievski‘s talks. This slide show got me inspired enough to start p
シンプルな問い合わせフォームアプリをSilexを使って作ってみましたのでその紹介。 Silexとは? SilexとはPHPで書かれたマイクロフレームワークです。RubyのsinatoraにインスパイアされてSymfony2のリードマージャー(Lead Merger)であるファビアンさんが作っています。特徴として名前空間がしがし使っていたりするのでPHP5.3.2以上でないと動きません。 というと、Symfony2っぽいと思われる方がいると思いますが、このSilexのライブラリはSymfony2でも利用しているコンポーネント類の一部を利用して作成されています。いわばSymfony2の妹分といったところでしょうか。 あと、ライブラリをpharアーカイブで配布しているので基本silex.pharの1ファイルさえあれば動かせます。 冗談のようなアプリかと思っていたら意外(失礼)と本気のようで公式サ
(Last Updated On: )昨年のPHPカンファレンスで紹介したPORVE for PHP 開発版の公開を始めました。PROVE for PHPはこんなテストが出来ます。 PHPをアップデートしてアプリに影響が無い事を検証する PHPアプリをアップデートしても以前と同じように動作する事を検証する 使い方もとても簡単です。 テストケースの作成はブラウザからアプリを利用するだけ ロードバランサを用いて実運用サーバからのテストケースも作成可能 テストの実行はプログラムを実行するだけ 違いが在った場所はプログラムの何処か確実&簡単に判明 http://www.provephp.com/ 現状 CUIとコマンドツールでの管理のみ GUI(Web、GTK)は順次整備予定 PROVEを利用すればPHPのセキュリティパッチがリリースされた場合に、アプリケーションの動作チェックにかかる時間は数時間
Photon, The High Performance PHP & Mongrel2 Framework Photon is a high performance micro PHP framework. High performance Photon is run behind Mongrel2 and is 3 to 10 times faster than Zend, Symfony and the best standard mod_php frameworks. Micro Photon does not try to do everything, the core is small, easy to understand and without magic. Tested Photon is delivered with a 100% test coverage. Async
Discover the Latest TechnologyStay ahead of the curve with PhpdevShell.org, the ultimate destination for all things computing. Expert Insights and ReviewsOur team of experts provides insightful articles and reviews on a wide range of topics, including high-tech gadgets, smartphones, and video games.
なんか知らないうちにPHPを全然書いたことがないという噂が広まっていて心外すぎるので弁明しておく。長くなるかもしれない。 PHPを使い始めたのはちょうど10年くらい前のことだと思う。4.0.3 あたりが出た頃だ。当時友人たちとシラバスの情報を共有するサイトをつくろうとしていて、PHP を紹介された。データベースに接続してデータの出し入れをするような仕掛けを簡単に作れるという。 それまでは web で何か作るといったら Perl だったし、テンプレートエンジンとかマルチパートパーサとかをまとめたオレオレ web アプリケーションフレームワークを作ってお茶を濁していた。Perl はかなり好きだった。それでも、PHP の手軽さは輝いて見えた。コードをそのまま HTML に埋め込めることでさえ、「poor-man's ASP」だと思って感激していた。マニュアルを見れば、答えが書いてあったから、動く
I was watching a DjangoCon keynote by Cal Henderson from Flickr and he mention that they used Hudson for Continuous Integration (CI). I know that there is phpUnderControl, but with Flickr endorsing Hudson that was enough for me to give Hudson a try over phpUnderControl. I will not be covering the installation of Hudson in this post. I would like to focus more on the integration of the PHP tools w
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く