Posted in November 2012


require_once(‘’); require_once(‘PHPUnit/Framework/TestClass.php’) class EmailAddressTest extends PHPUnit_Framework_TestCase { public function __constructor($name) { parent::__constructor($name) } function testLocalPart() { $email = new EmailAddress(‘’); $this->assertTrue($email->localPart == ‘george’); } } // then in TestRunner.php require_once ‘PHPUnit/Framework/TestSuite’; $suite = new PHPUnit_Framework_TestSuite(); $suite->addTest(new EmailAddressTest(‘testLocalPart’)); then run it like require_once ‘PHPUnit/TestUI/TestRunner’; PHPUnit_TextUI_TestRunner::run($suite);

Symfony in 2 minutes

localhost/Symfony/web/app_dev.php is the website. To create new project, there are only 2 steps: 1. Create a route. 2. Create a bundle and change the controller. The route is in /app/config/routing.yml The application can have many bundles. The bundle can be created with > php app/console generate:bundle –namespace=CathySoft/CoolBundle which will create src/CathySoft/CoolBundle/ and register it with … Continue reading


www/Symfony/app <- config, etc. eg /cache/, /logs/, config/ www/Symfony/src/ <- applications, bundles www/Symfony/web/ <- static files www/Symfony/vendor <- third party stuff

Sunday morning…

Feeling good!! Shouldn’t keep talking to friends about my boss. Turn the other cheek, Jesus said. It makes sense only to us to revenge. But Jesus asks a different thing. It will be a huge blessing in my life to do what Jesus says. It’s not time yet, but he will take charge of the … Continue reading

challenging time…

Really time to go. Pray that it’s gonna be okay. Thankful that 2 friends of mine called. Talked for about 1.5 hours. Grateful for God’s provisions.

Cool English Class today…

Taught some English, some Gospel story, seen some curious and thoughtful eyes.  I never get sick of telling people about Jesus. Seen their eyes while they think about God and the “better way”. Who can tell people to forgive 77 times? There is no forgiveness anywhere in the world. Not between the people, between the … Continue reading