public function testForThisFile() { $message = Message::forThisFile('foo', 'bar'); $this->assertInstanceOf('JMS\\TranslationBundle\\Model\\Message', $message); $this->assertEquals('foo', $message->getId()); $this->assertEquals('bar', $message->getDomain()); $source = new FileSource(__FILE__); $this->assertTrue($message->hasSource($source)); }