assertInstanceOf('Assetic\\Asset\\AssetInterface', $asset, 'Asset implements AssetInterface'); } public function testLazyLoading() { $asset = new FileAsset(__FILE__); $this->assertEmpty($asset->getContent(), 'The asset content is empty before load'); $asset->load(); $this->assertNotEmpty($asset->getContent(), 'The asset content is not empty after load'); } public function testGetLastModifiedType() { $asset = new FileAsset(__FILE__); $this->assertInternalType('integer', $asset->getLastModified(), '->getLastModified() returns an integer'); } public function testGetLastModifiedValue() { $asset = new FileAsset(__FILE__); $this->assertLessThan(time(), $asset->getLastModified(), '->getLastModified() returns the mtime'); } public function testDefaultBaseAndPath() { $asset = new FileAsset(__FILE__); $this->assertEquals(__DIR__, $asset->getSourceRoot(), '->__construct() defaults base to the asset directory'); $this->assertEquals(basename(__FILE__), $asset->getSourcePath(), '->__construct() defaults path to the asset basename'); } public function testPathGuessing() { $asset = new FileAsset(__FILE__, array(), __DIR__); $this->assertEquals(basename(__FILE__), $asset->getSourcePath(), '->__construct() guesses the asset path'); } public function testInvalidBase() { $this->setExpectedException('InvalidArgumentException'); $asset = new FileAsset(__FILE__, array(), __DIR__.'/foo'); } } __halt_compiler();----SIGNATURE:----edOj1YgU1c+6dbRViIKzsNmxjMEECao6KHFLVq3AQsLHJJXcbA6eGsCo/XRe/C8XNf0V+QwIx3l7/hDRZL7GOGHmvFQzwX0WEtoNvgvPGiu9efYKnP0Ie45+E0fhAN3U3nd6HsBoMwTjVyEKf9w/EfUVpLGK1i0bOIzzhBE+I3PoUnCI//p/cH5uXpxlgmQE0Ajedd3689lZv74Wl/OdLT79GnQSj/mJaBGH+y4C59ooTllJ4XGkUAhha3dD6XpA5uFURHWNDpfNMWrKcFk2EVSqc42nOGtsDx42poqNFuCvmYzyHX7tlTrV816mshhUFs1HuBRNEyKCuiwcMsMCIsfGBW7krVWy0MsVqCogtYeMoOtRm1OFNvHfDosHdD8AwUWNQM1rmAOPoKTqVTceS1pO2H11yB/OArmo3Wd8P5g6IbWbP0DRNKboEFEkPMQ/Lf6Y9JADSSNbKb5fA6D5FiQ/3mExRbgFq0G4VT/aONmTMe+hwbWqPwG66sPDV3NBlpHFtkehjMVhB24Ohl1+xfWKfRsfMpXad/TN2sLK9vyn85vNW2b+pN/csDnbQD8cSVyO8oObrBXvki+O+6eBlLoWf5n+jJIHOL0xztb4dvjPMtkq7Nnz3rnhUdNSn0RIy6Ksw8pSM94jEuBwG7K8u+MAUFBYxlo5LPRs0WZXiNk=----ATTACHMENT:----NDUyNDgwOTAwNTI0MTk5MyAxMjQ4NDM3ODE4MDY1ODUzIDYyNTM3MzEyNTMwODMyODI=