archive-com.com » COM » S » SOLARPHP.COM

Total: 875

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Solar Framework for PHP 5
    example take the following series of class directories Vendor php Vendor Vendor Foo php Vendor Foo Foo Baz php Vendor Foo Baz Dib php Vendor Foo Dib Bar php Vendor Bar Bar Zim php Vendor Bar Zim Gir php Vendor Bar Gir If you issue make tests Vendor Foo Baz the command will create one Test Vendor Foo Baz test class file However if you issue make tests Vendor Foo

    Original URL path: http://solarphp.com/manual/commands.make-tests (2016-02-13)
    Open archived version from archive


  • Solar Framework for PHP 5
    so pass the stop on fail option Test output is in Test Anything format and as such is somewhat verbose to begin with As a diagnostic and debugging aid you can pass verbose to see a lot more output including the actual and expected values of failed assertions 8 11 1 Run All Methods script solar run tests Test Class When you issue run tests Test Class the command will run all Test Class test methods and then it will recursively descend into the Test Class subdirectory and run all test classes and methods therein If you don t want recursive descent into subdirectories pass the only option 8 11 2 Run Some Methods script solar run tests Test Class testPrefix Sometimes you want to run only some of the methods in a test suite You can do so by passing the test class name and the test method name like so run tests Test Class testPrefix In fact the testPrefix part of the specification is a wildcard it will make the command run only methods that begin with testPrefix For example let s say you have test methods named testFoo testFoo9 and testFooBar along with other non foo test

    Original URL path: http://solarphp.com/manual/commands.run-tests (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    The documentation generated for the classes will be saved in the directory specified by class dir The package documentation will be saved in the directory specified by package dir If the optional docbook dir tag is passed the wiki like documentation files will be transformed into DocBook sources suitable for processing by the PHP Documentation Project PhD processor or another DocBook processor As part of the documentation generating process the

    Original URL path: http://solarphp.com/manual/commands.make-docs (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    make docs and transforms them into DocBook sources suitable for processing by the PHP Documentation Project PhD processor or another DocBook processor It uses the input documentation directories noted by package dir and class dir and saves the transformed output files to the directory noted by docbook dir Note You need not issue make docs and then make docbook if you want DocBook files You can do the conversion all

    Original URL path: http://solarphp.com/manual/commands.make-docbook (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    1 Headers and Header Injection 9 3 Message Attachments 9 4 Sending Messages 9 4 1 Using a Transport 9 4 2 Transport Dependency Injection Prev Up Next 8 13 Make DocBook Files Home 9 1 Introduction Local Navigation Home

    Original URL path: http://solarphp.com/manual/mail (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    mail setFrom pmjones example com addTo bolivar example net Bolivar Shagnaasty setSubject An Example Email Message add a text body component mail setText Hello world add an html body component mail setHtml p em Hello em world p add an attachment file path to image jpg mime image jpeg mail attachFile file mime now send the message using php mail build a transport transport Solar factory Solar Mail Transport array

    Original URL path: http://solarphp.com/manual/mail.intro (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    fox jumps over the lazy dog Now is the time for all good men to come to the aid of their country TEXT html HTML p The quick brown fox jumps em over em the lazy dog p p strong Now strong is the time for all good men to come to the aid of their country p HTML mail Solar factory Solar Mail Message mail setCharset utf 8 setFrom pmjones example com Paul M Jones addTo boshag example com Bolivar Shagnasty addCc nobody example net setSubject A Short Test Message setText text setHtml html That s pretty easy but is it safe 9 2 1 Headers and Header Injection Anything that ends up getting sent as a mail header including addresses and the subject line is sanitized against header injection attacks by removing newlines from the header label and value Let s say you want to add a new custom header php mail Solar factory Solar Mail Message mail setHeader X Custom Header Foo r n r nAn evil message Under a less secure system this would cause the header to be sent as X Custom Header Foo An evil message That s no good somebody just injected their

    Original URL path: http://solarphp.com/manual/mail.composing (2016-02-13)
    Open archived version from archive

  • Solar Framework for PHP 5
    this will automatically set the attachment name to the basename of the attached file mail Solar factory Solar Mail Message mail attachFile file name mime type Or you can build and add a MIME part yourself php file path path to file pdf mime type application pdf part Solar factory Solar Mail Message Part part setDisposition attachment part setFilename basename file name part setContent file get contents file name part

    Original URL path: http://solarphp.com/manual/mail.attachments (2016-02-13)
    Open archived version from archive



  •